[gnome-shell/gnome-3-18] telepathyClient: Acknowledge messages before closing



commit cdc9652f5bae922fe9ba31e95d8ab1dfb1f3b932
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Mar 8 15:52:09 2016 +0100

    telepathyClient: Acknowledge messages before closing
    
    While a channel has pending messages, it will pop up again when
    dismissed. That is clearly not what users expect, so clear them
    out first before closing a channel.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747991

 js/ui/components/telepathyClient.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index f571319..5925c3d 100644
--- a/js/ui/components/telepathyClient.js
+++ b/js/ui/components/telepathyClient.js
@@ -469,6 +469,7 @@ const ChatSource = new Lang.Class({
 
     destroy: function(reason) {
         if (this._client.is_handling_channel(this._channel)) {
+            this._ackMessages();
             // The chat box has been destroyed so it can't
             // handle the channel any more.
             this._channel.close_async(function(channel, result) {


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