tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

"send now" multiple selected sheduled messages, order is unexpected (follows compose time, not sheduled time)

Open SVNKoch opened this issue 10 months ago • 4 comments

Steps to reproduce

We will need three dates for sheduled messages A, B, C, such that A < B < C (eg tomorrow, in 2 days, in 3 days)

  1. schedule message "a" at date A
  2. schedule message "c" at date C (⚠️ C first, then B)
  3. schedule message "b" at date B grafik
  4. now select them and send them now grafik

Expected behaviour

order should of sent messages should be determined by the time of which they are sheduled for like this grafik so "a", "b", "c"

Actual behaviour

order is determined by the time of which the messages were composed, not to when they were sheduled grafik so "a", "c", "b"

Operating system

Windows 10 LTSC

Version of Telegram Desktop

4.16.4 x64

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

SVNKoch avatar Apr 23 '24 21:04 SVNKoch

What about the mobile client?

23rd avatar Apr 26 '24 22:04 23rd

on mobile (at least android) you don't have the "send now" option, thus this isn't a problem.

Screenshot

Screenshot_20240427-183958

SVNKoch avatar Apr 27 '24 16:04 SVNKoch

If you wish, you can test a nightly debug build. It should be better now. https://github.com/telegramdesktop/tdesktop/actions/runs/8866982405

23rd avatar Apr 28 '24 13:04 23rd

The telegram publication timer is not working correctly. Publication may occur 5-10 minutes later than the scheduled time. The time of publication in the post also changes.

kartavenko1983 avatar Apr 29 '24 17:04 kartavenko1983

@23rd I confirmed in the Telegram_x64 version, that the behaviour now works as expected. Thanks for implementing!

@kartavenko1983 comment seems unrealated, I think it has to do with diferent local time vs server time. My sheduled was "early" by like 8 seconds comapred to local machine time, but that is probably just my machine I assume.

Detailed testing: Sheduled mesages (order of creation: a, c then b): grafik after sending all three now: grafik

I also tried multiple messages sheduled to same time => will send in the order in which they were displayed in the sheduled messages preview. I also tried having sheduled messages A C B, resheduling B to order A B C => sends in the correct order that is also shown in the sheduled messages preview (A B C).

As a programmer inexperienced with c++, the code looks fine too.

SVNKoch avatar May 12 '24 23:05 SVNKoch

@SVNKoch Of course, I understand that there may be a delay, but not for 10 minutes, but for a couple of seconds. In addition, there was a case once that the record was not published at all

kartavenko1983 avatar May 14 '24 17:05 kartavenko1983

@kartavenko1983 you might have a valid bug here. However I don't see the relation of that problem to this issue. It has nothing to do with my original problem and is not effected by the proposed solution. You should create a new bug ticket and best to attach some logs / more details other than just that it sent with delay.

SVNKoch avatar May 14 '24 18:05 SVNKoch