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
This commit is contained in:
parent
2da4df219c
commit
82950ecea0
@ -469,6 +469,7 @@ const ChatSource = new Lang.Class({
|
|||||||
|
|
||||||
destroy: function(reason) {
|
destroy: function(reason) {
|
||||||
if (this._client.is_handling_channel(this._channel)) {
|
if (this._client.is_handling_channel(this._channel)) {
|
||||||
|
this._ackMessages();
|
||||||
// The chat box has been destroyed so it can't
|
// The chat box has been destroyed so it can't
|
||||||
// handle the channel any more.
|
// handle the channel any more.
|
||||||
this._channel.close_async(function(channel, result) {
|
this._channel.close_async(function(channel, result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user