Bug 426482

Summary: When I send messages on my phone after having connected to kdeconnect, it shows the message as if came from the sender.
Product: [Applications] kdeconnect Reporter: Titir Adhikary <titir.adhikary>
Component: messaging-applicationAssignee: Simon Redman <simon>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: sms send from phone
sms shown in kde connect

Description Titir Adhikary 2020-09-13 14:20:52 UTC
SUMMARY

After connecting to kde connect, if I send a message to someone from my phone - the message in kde connect looks as if its sent from the sender and not from me.

STEPS TO REPRODUCE
1. connect your phone to kde connect 
2. open kde connect sms on your desktop
3. send sms from your phone to someone 

OBSERVED RESULT

The new message that you sent appears to come from the person to whom you sent in kde connect sms dialog box.

EXPECTED RESULT

It should come from you.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Operating System: Manjaro Linux
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.7.15-1-MANJARO


ADDITIONAL INFORMATION

OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 Titir Adhikary 2020-09-13 14:21:46 UTC
Created attachment 131596 [details]
sms send from phone
Comment 2 Titir Adhikary 2020-09-13 14:22:16 UTC
Created attachment 131597 [details]
sms shown in kde connect
Comment 3 Simon Redman 2020-09-13 17:07:11 UTC
Hi,

Thanks for taking the time to report this.

From your pictures, it looks like you have a series of incoming messages on Android and a series of incoming messages on the desktop app. What does it look like if you have some messages which were sent and some which were received?
Comment 4 Titir Adhikary 2020-09-14 05:18:34 UTC
I'm sorry I think the screenshots might be confusing. In one screenshot I have sent the messages. In the other one they look I have received them and not sent them.
Comment 5 Simon Redman 2020-09-14 05:32:52 UTC
(In reply to Titir Adhikary from comment #4)
> I'm sorry I think the screenshots might be confusing. In one screenshot I
> have sent the messages. In the other one they look I have received them and
> not sent them.

I see, maybe I was confused. In the screenshots from the phone, it says "Received", but this means the other person received the outgoing message, right?

In that case, I agree that there is some issue here. Most likely it is because the phone vendor is doing something non-standard when saving messages. Since this doesn't happen on my device and since I haven't heard of it happening anywhere else, it will unfortunately be very annoying to track down.
Comment 6 Titir Adhikary 2020-09-14 05:37:55 UTC
I'm sorry I think the screenshots might be confusing. In one screenshot I have sent the messages. In the other one they look I have received them and not sent them.
Comment 7 Titir Adhikary 2020-09-14 05:38:32 UTC
Oh its phone specific then? Is there any way I can work on the bug?
Comment 8 Simon Redman 2020-09-14 06:12:06 UTC
(In reply to Titir Adhikary from comment #7)
> Oh its phone specific then? Is there any way I can work on the bug?

Since this is the first report I've heard about this, I think it is phone-specific.

I would suggest trying another messaging app (like Google Messages) to see if the same issue still happens.

If the issue is still there, then you would need to build the KDE Connect Android app from source and try to debug it by putting breakpoints in the getMessages methods of SmsHelper and see where it starts returning mixed-up values.
Comment 9 Titir Adhikary 2020-09-14 16:50:42 UTC
Okay the issue got solved when I used google msgs. I think its a phone issue then. Thanks for your help. I will close this bug.