Added basic delivery receipts

This commit is contained in:
James Booth
2015-03-11 23:18:28 +00:00
parent e5bb12a0d6
commit 78becceedb
10 changed files with 158 additions and 37 deletions

View File

@@ -381,6 +381,19 @@ ui_get_current_chat(void)
return wins_get_current_chat();
}
void
ui_message_receipt(const char * const barejid, const char * const id)
{
ProfChatWin *chatwin = wins_get_chat(barejid);
if (chatwin) {
ProfWin *win = (ProfWin*) chatwin;
GString *message = g_string_new("Message received: ");
g_string_append(message, id);
win_save_println(win, message->str);
g_string_free(message, TRUE);
}
}
void
ui_incoming_msg(const char * const barejid, const char * const resource, const char * const message, GTimeVal *tv_stamp)
{