After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769355 - A couple of notification/pending fixes
A couple of notification/pending fixes
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2016-07-31 13:12 UTC by Florian Müllner
Modified: 2016-08-01 20:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
chatView: Use more unique notification IDs (2.00 KB, patch)
2016-07-31 13:12 UTC, Florian Müllner
committed Details | Review
chatView: Ignore acknowledged outgoing messages (1.29 KB, patch)
2016-07-31 13:12 UTC, Florian Müllner
committed Details | Review
chatView: Remove pending marks on channel changes (2.15 KB, patch)
2016-07-31 13:12 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2016-07-31 13:12:31 UTC
See patches.
Comment 1 Florian Müllner 2016-07-31 13:12:37 UTC
Created attachment 332433 [details] [review]
chatView: Use more unique notification IDs

How did this go unnoticed all the time? Notification IDs that are
used to withdraw notifications are unique within the application,
while messages' pending IDs are only unique in the scope of the
channel. Update the ID to include the room identifier to stop
replacing notifications from other rooms.
Comment 2 Florian Müllner 2016-07-31 13:12:42 UTC
Created attachment 332434 [details] [review]
chatView: Ignore acknowledged outgoing messages

All outgoing messages have a pending ID of 0, which is also a valid ID
for incoming messages. We don't create pending marks or notifications for
outgoing messages, so don't remove another message's mark/notification
when acknowledged.
Comment 3 Florian Müllner 2016-07-31 13:12:47 UTC
Created attachment 332435 [details] [review]
chatView: Remove pending marks on channel changes

For highlighted messages, we defer acknowledging the message
until it has been read and pause autoscrolling in the meantime.
However as pending messages are tied to their channel, they won't
ever get acknowledged after a channel change (for instance on
disconnect). As a result, autoscrolling gets stuck until another
highlighted message happens to have the same ID (which may never
happen). Fix this by clearing out all pending marks on channel
changes.
Comment 4 Rares Visalom 2016-08-01 19:54:12 UTC
Review of attachment 332433 [details] [review]:

Looks good to me.
Comment 5 Rares Visalom 2016-08-01 19:54:52 UTC
Review of attachment 332434 [details] [review]:

looks good to me.
Comment 6 Rares Visalom 2016-08-01 19:55:08 UTC
Review of attachment 332435 [details] [review]:

looks good to me.
Comment 7 Florian Müllner 2016-08-01 20:32:04 UTC
Attachment 332433 [details] pushed as 9ea9dbd - chatView: Use more unique notification IDs
Attachment 332434 [details] pushed as f4b652b - chatView: Ignore acknowledged outgoing messages
Attachment 332435 [details] pushed as da46950 - chatView: Remove pending marks on channel changes