[gnome-shell] Don't save unacked messages



commit cb1966612e0aeae8eb316c05bda6dfcc223fbc53
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Jul 11 16:14:36 2011 +0200

    Don't save unacked messages
    
    Don't bother tracking which messages we need to ACK, just tell Telepathy to
    ACK them all.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=654398

 js/ui/telepathyClient.js |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 10ea5ac..9c38cce 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -576,13 +576,10 @@ ChatSource.prototype = {
     },
 
     _ackMessages: function() {
-        if (this._pendingMessages.length == 0)
-            return;
-
         // Don't clear our messages here, tp-glib will send a
         // 'pending-message-removed' for each one.
-        this._channel.ack_messages_async(this._pendingMessages, Lang.bind(this, function(src, result) {
-            this._channel.ack_messages_finish(result);}));
+        this._channel.ack_all_pending_messages_async(Lang.bind(this, function(src, result) {
+            this._channel.ack_all_pending_messages_finish(result);}));
     },
 
     _summaryItemClicked: function(source, button) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]