Bug #1064

avatar

On reconnect to running smuxi-server the message counter is misleading

Added by Lex Black 3465 days ago. Updated 3455 days ago.

Status:Closed Start:05/28/2015
Priority:Normal Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Frontend GNOME
Target version:1.0
Complexity:

Found in Version:

1.0.rc4.r28.g6991908-1 (master)

Votes: 1 (View)

Description

Dunno how to describe it properly.
Visit all channels, close frontend, and reconnect.
Now on all channels the red bar ("last visit") jumped one message up, If it's not a status message the counter on the treelist will appear

smuxi-part1.png - Before closing the the frontend; Channel to look at #smuxi-devel (259.8 KB) Lex Black, 05/28/2015 11:39 PM

smuxi-part2.png - Shortly after the reconnect with a new frontend session; All the channels were the 1 appears (162.1 KB) Lex Black, 05/28/2015 11:39 PM

smuxi-part3.png - Let us look at #smuxi-devel; It's the old message (275.7 KB) Lex Black, 05/28/2015 11:39 PM


Related issues

duplicates Smuxi - Bug #1058 Seen message become unseen on reconnect to server Closed 05/22/2015

Associated revisions

Revision 5d192fe9f970a80ccfbd72522b10293d8d2be5f0
Added by Mirco Bauer 3455 days ago

Engine: use millisecond precision for storing last seen message and highlight (closes: #1064)

DateTime.ToString("u") only has second precision while Smuxi messages have
sub-second precision. This caused that the last already seen Smuxi message was
shown as unseen as the sub-second data got lost when it was stored in the SQLite
database. ss.mmmm > ss.0 and thus it was newer/unseen.

History

Updated by Mirco Bauer 3465 days ago

avatar

Ok, do you agree that looks like off-by-one-error?

Updated by Lex Black 3465 days ago

avatar

Most likely. Instead of x it represents x-1

Updated by Mirco Bauer 3464 days ago

avatar
  • Category set to Frontend GNOME
  • Assigned to set to Mirco Bauer
  • Target version set to 1.0

Updated by Mirco Bauer 3459 days ago

avatar

I can reproduce this issue.

Updated by Mirco Bauer 3455 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF