telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.94k stars 5.14k forks source link

Drafts keep reappearing in topic groups on other devices #26236

Open Inurosen opened 1 year ago

Inurosen commented 1 year ago

Steps to reproduce

  1. Write a message in a topic group.
  2. Wait for it to become draft/
  3. Send the message.
  4. After some time open Telegram on other device.
  5. There will be the latest draft in topic's chat box. The sent message is visible in conversation.
  6. Delete the draft.
  7. After some time open Telegram on third device.
  8. There will be the same draft. The sent message is visible in conversation

Expected behaviour

Drafts of sent messages in topics don't reappear.

Actual behaviour

Drafts of sent messages in topics reappear on all devices connected to senders account.

Operating system

Any

Version of Telegram Desktop

4.8.1

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

Aokromes commented 1 year ago

i think this must be server bug.

bastiaand commented 1 year ago

I experienced this when I started a group message in Telegram web and left it unsent it would keep showing up on another machine in Telegram Desktop. Get rid of your draft/unsent messages on other devices and your issue may go away.

Younes-L commented 1 year ago

Noticed server recently began aggressively pushing old drafts onto client's throat

bastiaand commented 1 year ago

Noticed server recently began aggressively pushing old drafts onto client's throat

That may be true, but if you have a draft/unsent message in TG web it will appear every ? seconds in your TG desktop session. Just get rid of the draft/unsent message regardless of where it is and the problem should go away.

Fun stuff.

samgrrehder commented 1 year ago

If "getting rid of draft/unsent" is not just deleting the draft on all devices, this didn't worked for me. What worked was ending all sessions from connected devices, then, I checked if the draft was still reappearing on my phone, I confirmed it wasn't, then, I connected my pc, and the draft really stopped appearing.

sempamavin commented 1 year ago

I have the same issue in the telegram on windows and android devices. I'm sending a message, but Telegram prompts me to edit the sent message as a draft.

taifu commented 1 year ago

Same here. Hateful problem.

gabiiel commented 1 year ago

https://github.com/telegramdesktop/tdesktop/issues/2229

At least 7 year old problem, I deleted the message on all active devices but it still was updating with this annoyance every 10 sec Send the message, it gets back, try to leave another, smaller one, it gets back and deletes legitimate stuff, not even "delete all cloud draft" worked until I removed all the devices

Just give me the option to not use cloud draft, if I want to send a message across platforms, I can use the "saved messages tab" or simply rewrite the stuff, if you can't do it right, give me the option to not have your broken feature

RobT2012 commented 1 year ago

Here's how I fixed it. I was using TG on my Android phone, and TG web in Chrome browser on a Linux machine. What appears to have been the problem was having multiple open pages with TG Web on the browser. After I closed all the open TG Web instances, except for only one, then I could delete the draft message and it finally went away for good. I left the Android TG app open when I was closing TG Web sessions, so it appears to not matter if the app is still connected while using the web app, it's only a problem if there are multiple TG web pages open. The problem may happened with another type of browser such as FireFox but I've not tested it to find out.

vilmaera commented 1 year ago

Yeah. Even faster way to stop is this:

I have 2 devices: chrome and mobile.

  1. Go to your mobile, FORCE STOP your Telegram.
  2. Go to your PC and delete the message
  3. Paste something quick and delete it
  4. It helped me
RobT2012 commented 1 year ago

I can confirm that the recurring "draft" message is reproducible by opening more than one instance of TG connected to the same account. Some posts will end up popping up as draft posts long after they were committed or deleted, there's no way to remove the draft messages except by closing all instances of TG except for one, and deleting the draft on the remaining open TG instance. My best guess is that which posts end up becoming recurring drafts depends on how long they were left open before committing them or deleting them. The ones of short duration (less than a minute maybe) probably are fine, but the ones left unfinished for a few minutes seem to become recurring drafts.

lehonmikko commented 1 year ago

Same thing for me. Draft won delete.. I will try some of your suggestions.

thuongnvblockodyssey commented 1 year ago

drafts is a very annoying feature on telegram. I often open telegram on multiple devices at the same time. And drafts automatically syncs between devices.

Aokromes commented 1 year ago

drafts aren't annoying, they are usefull, bugged drafts are annoying.

jsphwllng commented 1 year ago

An option to disable cloud drafts on your account would be useful here.

foxmajik commented 1 year ago

I confirm that this problem exists across the web, desktop (windows) and Android versions.

JoseHernandez88 commented 1 year ago

yeah I have this issue as well

jstafford5380 commented 11 months ago

Yep definitely have this problem and it's not going away no matter how many times I delete it. It has completely taken over a group chat. I have telegram on probably a dozen devices that I'm now going to have to disconnect and reconnect and pray to god it goes away

hurtonypeter commented 10 months ago

Any update on this?

Wouldn't it be easier to add a settings flag, so we can simply turn off draft saving? I don't see the point of it anyways.

eric2788 commented 10 months ago

same here. It's so annoying

nvthuong1996 commented 9 months ago

Drafts are an extremely annoying feature in telegram. Please correct it

jstafford5380 commented 8 months ago

I've had the same text on every device that I have to erase before sending a new message -- for the last 6 months.

On Mon, Dec 18, 2023 at 8:56 AM nvthuong1996 @.***> wrote:

Drafts are an extremely annoying feature in telegram. Please correct it

— Reply to this email directly, view it on GitHub https://github.com/telegramdesktop/tdesktop/issues/26236#issuecomment-1860887091, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALI4REBF6MMWIT33SNI2RYDYKBRTRAVCNFSM6AAAAAAXNV7GYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRQHA4DOMBZGE . You are receiving this because you commented.Message ID: @.***>

RememberTheAir commented 8 months ago

Not sure if this is the same issue, but drafts keep coming back to my input box over and over and over, in non-forum chats and in single topics. Clearing them from desktop doesn't work - the next time you open it the draft will be back. Clearing them from another client won't work, tdesktop will continue to show them when you open it. I've ignored this for a few months, but now I have way too many topics with ghost drafts to ignore the issue :/

tugruul commented 8 months ago

Same shit happens to me. İ got rid off that bug donno how. But it came to my browser again. İ deleted all cloud drafts from settings, but nıthing happened. After that terminated all devices still nothing. Seriosly it is very annoying that all the time before group message u have to delete draft after that u can send message.

krischik commented 6 months ago

Get rid of your draft/unsent messages on other devices and your issue may go away.

That's not feasible as some of those devices are physically several kilometre apart so it's impossible to delete them all in time before the draft reappears on all devices.

krischik commented 6 months ago

I have 2 devices: chrome and mobile.

Doesn't work if you have more then two devices.

krischik commented 6 months ago

drafts aren't annoying, they are useful, bugged drafts are annoying.

I rather have no drafts then bugged drafts.

danslo commented 6 months ago

Agreed, the only way to fix this is by terminating the other session. But there's a limit to how many times you can add devices, so it's a hacky workaround that doesn't work half of the time.

All I ask for is a toggle to disable drafts.

krischik commented 6 months ago

The reason why I'm here: Drafts have become even more aggressive.

They now delete what you have typed and replace it with a version of the same message from a few minutes ago. Now I have to prepare my message in a text editor and copy paste it and quickly press send.

Of course within seconds the older version of the draft appears again.

Telegram: If you can't get it to work properly remove drafts.

Aokromes commented 6 months ago

myself i don't have seen any unwanted draft for long time

tws-rdelatorre commented 3 months ago

myself i don't have seen any unwanted draft for long time

I have, quite a few times over the past year or so, last time this very morning.

If drafts was a feature that could be turned off, I'd turn it off for sure and personally wouldn't miss it.

hezamu commented 2 months ago

This issue keeps appearing constantly.

Cloud sync for drafts is a misfeature. Please remove it, or at least give me an option to disable it, preferably opt-in.

baltika10 commented 2 months ago

I've found way to "partially" solve the problem when you don't have access to the PC with the opened web telegram, is to update the draft value to something with one symbol (for example dot) from the phone, so it's easier to remove it later, when you need to write something. And I agree, this is useless annoying feature