aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-25 18:50:16 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-25 18:50:16 +0800
commit465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c (patch)
treed21bf8b3aa7db9f1688c30aa0a8c292b5afcde5a
parented9505140adea2ad3ef0a8d25057197864ead712 (diff)
downloadgsoc2013-empathy-465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c.tar
gsoc2013-empathy-465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c.tar.gz
gsoc2013-empathy-465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c.tar.bz2
gsoc2013-empathy-465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c.tar.lz
gsoc2013-empathy-465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c.tar.xz
gsoc2013-empathy-465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c.tar.zst
gsoc2013-empathy-465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c.zip
Reopen tabs as SMS channels when appropriate
-rw-r--r--src/empathy-chat-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/empathy-chat-manager.c b/src/empathy-chat-manager.c
index 6457a6d88..4ed26af30 100644
--- a/src/empathy-chat-manager.c
+++ b/src/empathy-chat-manager.c
@@ -82,6 +82,7 @@ typedef struct
TpAccount *account;
gchar *id;
gboolean room;
+ gboolean sms;
} ChatData;
static ChatData *
@@ -94,6 +95,7 @@ chat_data_new (EmpathyChat *chat)
data->account = g_object_ref (empathy_chat_get_account (chat));
data->id = g_strdup (empathy_chat_get_id (chat));
data->room = empathy_chat_is_room (chat);
+ data->sms = empathy_chat_is_sms_channel (chat);
return data;
}
@@ -466,6 +468,8 @@ empathy_chat_manager_undo_closed_chat (EmpathyChatManager *self,
if (data->room)
empathy_join_muc (data->account, data->id, timestamp);
+ else if (data->sms)
+ empathy_sms_contact_id (data->account, data->id, timestamp);
else
empathy_chat_with_contact_id (data->account, data->id, timestamp);