[empathy] use a specific event type for muc invitations



commit 4ac0eb75372d295c6ff7bd36fb7d708ad28132b2
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Jul 6 14:49:09 2010 +0200

    use a specific event type for muc invitations

 src/empathy-event-manager.c |    4 ++--
 src/empathy-event-manager.h |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 4c540ac..dd4c1c0 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -711,8 +711,8 @@ event_manager_muc_invite_got_contact_cb (TpConnection *connection,
       tp_channel_get_identifier (approval->main_channel));
 
   event_manager_add (approval->manager, approval->contact,
-      EMPATHY_EVENT_TYPE_CHAT, EMPATHY_IMAGE_GROUP_MESSAGE, msg, invite_msg,
-      approval, event_room_channel_process_func, NULL);
+      EMPATHY_EVENT_TYPE_INVITATION, EMPATHY_IMAGE_GROUP_MESSAGE, msg,
+      invite_msg, approval, event_room_channel_process_func, NULL);
 
   empathy_sound_play (window, EMPATHY_SOUND_CONVERSATION_NEW);
 
diff --git a/src/empathy-event-manager.h b/src/empathy-event-manager.h
index 126f677..39aa0c9 100644
--- a/src/empathy-event-manager.h
+++ b/src/empathy-event-manager.h
@@ -53,7 +53,8 @@ typedef enum {
     EMPATHY_EVENT_TYPE_VOIP,
     EMPATHY_EVENT_TYPE_TRANSFER,
     EMPATHY_EVENT_TYPE_SUBSCRIPTION,
-    EMPATHY_EVENT_TYPE_PRESENCE
+    EMPATHY_EVENT_TYPE_PRESENCE,
+    EMPATHY_EVENT_TYPE_INVITATION,
 } EmpathyEventType;
 
 typedef struct {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]