diff options
-rw-r--r-- | libempathy/empathy-tp-chat.c | 5 | ||||
-rw-r--r-- | libempathy/empathy-tp-chat.h | 3 | ||||
-rw-r--r-- | src/empathy.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 858cfae27..a9a63f548 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -1868,7 +1868,8 @@ empathy_tp_chat_join (EmpathyTpChat *self) } gboolean -empathy_tp_chat_is_invited (EmpathyTpChat *self) +empathy_tp_chat_is_invited (EmpathyTpChat *self, + TpHandle *inviter) { EmpathyTpChatPriv *priv = GET_PRIV (self); TpHandle self_handle; @@ -1881,5 +1882,5 @@ empathy_tp_chat_is_invited (EmpathyTpChat *self) return FALSE; return tp_channel_group_get_local_pending_info (priv->channel, self_handle, - NULL, NULL, NULL); + inviter, NULL, NULL); } diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h index e5abe936f..3ac5eaf58 100644 --- a/libempathy/empathy-tp-chat.h +++ b/libempathy/empathy-tp-chat.h @@ -101,7 +101,8 @@ gboolean empathy_tp_chat_can_add_contact (EmpathyTpChat *self); void empathy_tp_chat_leave (EmpathyTpChat *chat); void empathy_tp_chat_join (EmpathyTpChat *chat); -gboolean empathy_tp_chat_is_invited (EmpathyTpChat *chat); +gboolean empathy_tp_chat_is_invited (EmpathyTpChat *chat, + TpHandle *inviter); G_END_DECLS diff --git a/src/empathy.c b/src/empathy.c index 9d59bba79..5f3131389 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -136,7 +136,7 @@ dispatch_cb (EmpathyDispatcher *dispatcher, empathy_chat_window_present_chat (chat, empathy_dispatch_operation_get_user_action_time (operation)); - if (empathy_tp_chat_is_invited (tp_chat)) + if (empathy_tp_chat_is_invited (tp_chat, NULL)) { /* We have been invited to the room. Add ourself as member as this * channel has been approved. */ |