ars3niy / tdlib-purple

libpurple Telegram plugin using tdlib
Other
147 stars 32 forks source link

Messages immediately marked as read #166

Open jojoharry16 opened 2 years ago

jojoharry16 commented 2 years ago

Description

Any time my computer is awake with Pidgin running, any messages that arrive from Telegram are immediately marked as read by me to the sender, even if the Pidgin window isn't open. This means my phone doesn't ring on a new message, so if I leave my computer running when I leave the house I get no notifications for any messages leading to people believing I've died.

Steps to Reproduce

Send me a message, I'll probably miss it.

Expected Behaviour

My phone vibrates / rings on receiving a message and shows me a notification, at the same time Pidgin plays the "message received" tone, and the message remains unread until Pidgin takes focus or I open the notification on my phone

Actual Behaviour

Pidgin's "message received" tone plays and message is marked as read.

Software Versions

Windows: Windows 10 Pro 21H2 build 19044.1826 Pidgin: Pidgin 2.14.10 (libpurple 2.14.10) build 594d723693040b57a4d0faf403c9e15878047eac

BenWiederhake commented 2 years ago

That should only happen when the chat window receives focus from the window manager. Do you have pidgin configured to use separate windows for each chat? Then a new chat would mean a new window, which might immediately get focus (I haven't used Windows in a long time, so I don't know what the new conventions are), and that in turn causes pidgin to tell Telegram that the message was read.

If that's the case, you can change that behavior in the Buddy List window, "Extras" Menu, "Settings" item, "Interface" tab, "Tabs" group, "New chats" item, and then select anything except "New window", for example "Group by account". I'm using the German version, so the labels might be slightly different.