aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-chat.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-15 18:21:52 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-21 10:25:25 +0800
commitb7013f41997500ed888fb3b40f3c11a5502079cd (patch)
tree53c05d40c820dfb5fe8138f8648250da47396eef /libempathy/empathy-tp-chat.c
parentfd96433c558ca24e8db7397b69cbd600caa6b793 (diff)
downloadgsoc2013-empathy-b7013f41997500ed888fb3b40f3c11a5502079cd.tar
gsoc2013-empathy-b7013f41997500ed888fb3b40f3c11a5502079cd.tar.gz
gsoc2013-empathy-b7013f41997500ed888fb3b40f3c11a5502079cd.tar.bz2
gsoc2013-empathy-b7013f41997500ed888fb3b40f3c11a5502079cd.tar.lz
gsoc2013-empathy-b7013f41997500ed888fb3b40f3c11a5502079cd.tar.xz
gsoc2013-empathy-b7013f41997500ed888fb3b40f3c11a5502079cd.tar.zst
gsoc2013-empathy-b7013f41997500ed888fb3b40f3c11a5502079cd.zip
empathy-tp-chat: ensure that we get a TpTextChannel
Diffstat (limited to 'libempathy/empathy-tp-chat.c')
-rw-r--r--libempathy/empathy-tp-chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index da3ac663a..6b6dfebe5 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1618,7 +1618,7 @@ empathy_tp_chat_new (TpAccount *account,
TpChannel *channel)
{
g_return_val_if_fail (TP_IS_ACCOUNT (account), NULL);
- g_return_val_if_fail (TP_IS_CHANNEL (channel), NULL);
+ g_return_val_if_fail (TP_IS_TEXT_CHANNEL (channel), NULL);
return g_object_new (EMPATHY_TYPE_TP_CHAT,
"account", account,