[empathy] Reopen tabs as SMS channels when appropriate
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Reopen tabs as SMS channels when appropriate
- Date: Wed, 25 May 2011 10:51:04 +0000 (UTC)
commit 465d2ffaf8c2cd31ae1efc7fdcc85b3d5cb0773c
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Wed May 25 12:50:16 2011 +0200
Reopen tabs as SMS channels when appropriate
src/empathy-chat-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-chat-manager.c b/src/empathy-chat-manager.c
index 6457a6d..4ed26af 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]