summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-21 16:26:54 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-27 15:37:58 +0100
commit8f0e2aea3ccb9887450e4ebd7580d4f222d3c791 (patch)
tree23259003a8bfcfc138d078e2b0eed4202c088c1c
parent2a670d9ad89bf065b3d102a09854d49232e57d56 (diff)
chatroom-manager: fix text channel check
-rw-r--r--libempathy/empathy-chatroom-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 41a8da54..5df9600d 100644
--- a/libempathy/empathy-chatroom-manager.c
+++ b/libempathy/empathy-chatroom-manager.c
@@ -873,13 +873,14 @@ observe_channel_cb (TpSimpleObserver *observer,
const gchar *roomname;
EmpathyChatroom *chatroom;
- if (tp_proxy_get_invalidated (channel) == NULL ||
+ if (tp_proxy_get_invalidated (channel) != NULL ||
!EMPATHY_IS_TP_CHAT (channel))
{
GError e = { TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"Not a text channel" };
tp_observe_channel_context_fail (context, &e);
+ return;
}
tp_chat = EMPATHY_TP_CHAT (channel);