1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

ui_message_receipt takes ProfChatWin

This commit is contained in:
James Booth 2015-10-26 22:54:06 +00:00
parent 8f45f332ad
commit 2efaa464bf
4 changed files with 10 additions and 9 deletions

View File

@ -311,7 +311,11 @@ sv_ev_delayed_private_message(const char *const fulljid, char *message, GDateTim
void
sv_ev_message_receipt(char *barejid, char *id)
{
ui_message_receipt(barejid, id);
ProfChatWin *chatwin = wins_get_chat(barejid);
if (!chatwin)
return;
ui_message_receipt(chatwin, id);
}
void

View File

@ -47,13 +47,10 @@
static void _win_show_history(ProfChatWin *chatwin, const char *const contact);
void
ui_message_receipt(const char *const barejid, const char *const id)
ui_message_receipt(ProfChatWin *chatwin, const char *const id)
{
ProfChatWin *chatwin = wins_get_chat(barejid);
if (chatwin) {
ProfWin *win = (ProfWin*) chatwin;
win_mark_received(win, id);
}
ProfWin *win = (ProfWin*) chatwin;
win_mark_received(win, id);
}
void

View File

@ -112,7 +112,7 @@ void ui_contact_online(char *barejid, Resource *resource, GDateTime *last_activi
void ui_contact_typing(const char *const barejid, const char *const resource);
void ui_incoming_msg(ProfChatWin *chatwin, const char *const resource, const char *const message, GDateTime *timestamp, gboolean win_created, prof_enc_t enc_mode);
void ui_incoming_private_msg(const char *const fulljid, const char *const message, GDateTime *timestamp);
void ui_message_receipt(const char *const barejid, const char *const id);
void ui_message_receipt(ProfChatWin *chatwin, const char *const id);
void ui_disconnected(void);
void ui_recipient_gone(const char *const barejid, const char *const resource);

View File

@ -185,7 +185,7 @@ void ui_contact_online(char *barejid, Resource *resource, GDateTime *last_activi
void ui_contact_typing(const char * const barejid, const char * const resource) {}
void ui_incoming_msg(ProfChatWin *chatwin, const char * const resource, const char * const message, GDateTime *timestamp, gboolean win_created, prof_enc_t enc_mode) {}
void ui_message_receipt(const char * const barejid, const char * const id) {}
void ui_message_receipt(ProfChatWin *chatwin, const char * const id) {}
void ui_incoming_private_msg(const char * const fulljid, const char * const message, GDateTime *timestamp) {}