[empathy/next] chatroom-manager: fix text channel check
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/next] chatroom-manager: fix text channel check
- Date: Thu, 27 Feb 2014 14:56:02 +0000 (UTC)
commit 8f0e2aea3ccb9887450e4ebd7580d4f222d3c791
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Feb 21 16:26:54 2014 +0100
chatroom-manager: fix text channel check
libempathy/empathy-chatroom-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 41a8da5..5df9600 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]