diff options
author | James Booth <boothj5@gmail.com> | 2014-12-29 00:31:57 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-12-29 00:31:57 +0000 |
commit | 4be06c0ae270ad8a04abba85ef3c608527a29d2c (patch) | |
tree | 9139b4cc312175d94638ac951d83a717fcf675b6 /src/profanity.c | |
parent | fe2ef44cacc0be828ad74d829ec76f44aa30a512 (diff) | |
download | profani-tty-4be06c0ae270ad8a04abba85ef3c608527a29d2c.tar.gz |
Moved chat_session_set_sent from message.c module
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c index bb7036fe..eae08828 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -137,6 +137,7 @@ prof_handle_idle(void) { jabber_conn_status_t status = jabber_get_connection_status(); if (status == JABBER_CONNECTED) { + // TODO get chat only recipients GSList *recipients = ui_get_recipients(); GSList *curr = recipients; @@ -148,13 +149,16 @@ prof_handle_idle(void) if (chat_session_is_gone(recipient) && !chat_session_get_sent(recipient)) { message_send_gone(recipient); + chat_session_set_sent(recipient); } else if (chat_session_is_inactive(recipient) && !chat_session_get_sent(recipient)) { message_send_inactive(recipient); + chat_session_set_sent(recipient); } else if (prefs_get_boolean(PREF_OUTTYPE) && chat_session_is_paused(recipient) && !chat_session_get_sent(recipient)) { message_send_paused(recipient); + chat_session_set_sent(recipient); } } @@ -180,6 +184,7 @@ prof_handle_activity(void) if (!chat_session_get_sent(chatwin->barejid) || chat_session_is_paused(chatwin->barejid)) { message_send_composing(chatwin->barejid); + chat_session_set_sent(chatwin->barejid); } } } |