soc.2009.telepathy: c08f14b6: Fix display of scrollback messages
sttwister at gmail.com
sttwister at gmail.com
Mon Aug 10 15:26:09 EDT 2009
-----------------------------------------------------------------
Revision: c08f14b60f95414b2cf64955d3c26bdcff3344fb
Ancestor: fe5854357c7664c988adee6fa1a7e6bbe7e950a7
Author: sttwister at gmail.com
Date: 2009-08-10T19:17:24
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/c08f14b60f95414b2cf64955d3c26bdcff3344fb
Modified files:
libpurple/protocols/telepathy/telepathy_channel_text.c
ChangeLog:
Fix display of scrollback messages
-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy_channel_text.c 57fb59b88dd6027f960a30ac608683b22de4da1b
+++ libpurple/protocols/telepathy/telepathy_channel_text.c 3c5a5deb0a83d5b47b5e1e620f4a73f98dfcdae3
@@ -206,11 +206,19 @@ chat_got_scrollback_messages (telepathy_
purple_debug_info("telepathy", "Requesting %u contacts for scrollback\n", handles->len);
- tp_connection_get_contacts_by_handle(data->connection,
- handles->len, (TpHandle *)handles->data,
- G_N_ELEMENTS (features), features,
- get_contacts_for_scrollback_cb, tp_messages,
- NULL, NULL);
+ if (handles->len > 0)
+ {
+ tp_connection_get_contacts_by_handle(data->connection,
+ handles->len, (TpHandle *)handles->data,
+ G_N_ELEMENTS (features), features,
+ get_contacts_for_scrollback_cb, tp_messages,
+ NULL, NULL);
+ }
+ else
+ {
+ get_contacts_for_scrollback_cb(data->connection,
+ 0, NULL, 0, NULL, NULL, tp_messages, NULL);
+ }
}
static void
More information about the Commits
mailing list