[polari] chatView: Pick up pending messages on initialization
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] chatView: Pick up pending messages on initialization
- Date: Thu, 8 Aug 2013 13:11:23 +0000 (UTC)
commit 716cfeb81ba368c6bf0fcd1ffd6211cc7fa5ac4b
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 26 19:19:58 2013 +0200
chatView: Pick up pending messages on initialization
src/chatView.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 9fb20be..9db039a 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -99,6 +99,12 @@ const ChatView = new Lang.Class({
roomSignals.forEach(Lang.bind(this, function(signal) {
this._roomSignals.push(room.connect(signal.name, signal.handler));
}));
+
+ room.channel.dup_pending_messages().forEach(Lang.bind(this,
+ function(message) {
+ this._insertMessage(room, message);
+ }));
+ this._checkMessages();
},
_createTags: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]