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 654398 - Should use tp_text_channel_ack_all_pending_messages_async()
Should use tp_text_channel_ack_all_pending_messages_async()
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-07-11 14:10 UTC by Guillaume Desmottes
Modified: 2011-08-04 08:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Always ack all pending messages (1.39 KB, patch)
2011-07-11 14:22 UTC, Guillaume Desmottes
reviewed Details | Review
Always ack all pending messages (1.56 KB, patch)
2011-07-11 14:38 UTC, Guillaume Desmottes
reviewed Details | Review
Don't save unacked messages (1.26 KB, patch)
2011-08-04 08:55 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2011-07-11 14:10:35 UTC
Empathy just switched to tp_text_channel_ack_all_pending_messages_async() to ack messages. All the pending messages should always be acked, keeping unacked messages around isn't useful and may confuse UI as the same channel will be recreated as soon it's closed.
Comment 1 Guillaume Desmottes 2011-07-11 14:22:16 UTC
Created attachment 191729 [details] [review]
Always ack all pending messages

Keeping unacked messages is useless, may consume lot of memory and will cause
channels to be respawned when being closed.

We continue to keep a list of displayed pending messages to properly update
the source count.
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-07-11 14:32:10 UTC
Review of attachment 191729 [details] [review]:

This commit message is misleading: it implies that we leave no message unacked. How about:

  Don't save unacked messages

  Don't bother tracking which messages we need to ACK,
  just tell Telepathy to ACK them all.
Comment 3 Guillaume Desmottes 2011-07-11 14:38:13 UTC
Created attachment 191730 [details] [review]
Always ack all pending messages

We use to ack all displayed pending messages, we now ack all the pending
messages even those not displayed.

Keeping unacked messages is useless, may consume lot of memory (unacked
messages stay in memory until connection is disconnected) and will cause
channels to be respawned when being closed.

We continue to keep a list of displayed pending messages to properly update
the source count.
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-08-03 19:22:36 UTC
Review of attachment 191730 [details] [review]:

I'd still like a better commit message. Again, this implies that we don't leave any message unacked, but in reality we just don't bother passing the messages we know are unacked back to telepathy.
Comment 5 Guillaume Desmottes 2011-08-04 08:39:22 UTC
Just give me the commit message you'd like and let's be done with this.
Comment 6 Guillaume Desmottes 2011-08-04 08:55:46 UTC
Created attachment 193229 [details] [review]
Don't save unacked messages

Don't bother tracking which messages we need to ACK, just tell Telepathy to
ACK them all.
Comment 7 Guillaume Desmottes 2011-08-04 08:56:43 UTC
Merged to master as cb1966612e0aeae8eb316c05bda6dfcc223fbc53

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.