diff options
Diffstat (limited to 'src/chat/messenger.c')
-rw-r--r-- | src/chat/messenger.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/chat/messenger.c b/src/chat/messenger.c index 452e476..6a3f0b9 100644 --- a/src/chat/messenger.c +++ b/src/chat/messenger.c | |||
@@ -101,6 +101,14 @@ _chat_messenger_message(void *cls, | |||
101 | 101 | ||
102 | switch (kind) | 102 | switch (kind) |
103 | { | 103 | { |
104 | case GNUNET_CHAT_KIND_WARNING: | ||
105 | application_call_message_event( | ||
106 | app, | ||
107 | event_handle_warning, | ||
108 | context, | ||
109 | message | ||
110 | ); | ||
111 | break; | ||
104 | case GNUNET_CHAT_KIND_REFRESH: | 112 | case GNUNET_CHAT_KIND_REFRESH: |
105 | { | 113 | { |
106 | application_call_event(app, event_refresh_accounts); | 114 | application_call_event(app, event_refresh_accounts); |
@@ -122,23 +130,19 @@ _chat_messenger_message(void *cls, | |||
122 | break; | 130 | break; |
123 | } | 131 | } |
124 | case GNUNET_CHAT_KIND_JOIN: | 132 | case GNUNET_CHAT_KIND_JOIN: |
133 | case GNUNET_CHAT_KIND_LEAVE: | ||
125 | { | 134 | { |
126 | application_call_message_event( | 135 | application_call_message_event( |
127 | app, | 136 | app, |
128 | (GNUNET_YES == GNUNET_CHAT_message_is_sent(message)? | 137 | (GNUNET_YES == GNUNET_CHAT_message_is_sent(message)? |
129 | event_update_chats : | 138 | event_update_chats : |
130 | event_joining_contact | 139 | event_presence_contact |
131 | ), | 140 | ), |
132 | context, | 141 | context, |
133 | message | 142 | message |
134 | ); | 143 | ); |
135 | break; | 144 | break; |
136 | } | 145 | } |
137 | case GNUNET_CHAT_KIND_LEAVE: | ||
138 | { | ||
139 | // TODO: add status message | ||
140 | break; | ||
141 | } | ||
142 | case GNUNET_CHAT_KIND_CONTACT: | 146 | case GNUNET_CHAT_KIND_CONTACT: |
143 | { | 147 | { |
144 | application_call_message_event( | 148 | application_call_message_event( |