Telepathy: ignore errors from ack_all_pending_messages()

Invalid ID errors from that function are normal, because the set
of IDs to acknowledge may not match the set in the connection manager
due to race conditions.
This is also what empathy does.

https://bugzilla.gnome.org/show_bug.cgi?id=683449
This commit is contained in:
Giovanni Campagna 2012-11-26 22:30:20 +01:00
parent bb88265d78
commit d517c13d7a

View File

@ -730,8 +730,7 @@ const ChatSource = new Lang.Class({
_ackMessages: function() {
// Don't clear our messages here, tp-glib will send a
// 'pending-message-removed' for each one.
this._channel.ack_all_pending_messages_async(Lang.bind(this, function(src, result) {
this._channel.ack_all_pending_messages_finish(result);}));
this._channel.ack_all_pending_messages_async(null);
}
});