1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Renamed recipient->barejid in chat sessions

This commit is contained in:
James Booth 2014-12-29 02:08:06 +00:00
parent 894360dc81
commit e75b8dcfb3

View File

@ -65,9 +65,9 @@ typedef struct chat_session_t {
static GHashTable *sessions; static GHashTable *sessions;
static ChatSession* _chat_session_new(const char * const recipient, gboolean supported); static ChatSession* _chat_session_new(const char * const barejid, gboolean supported);
static void _chat_session_set_composing(const char * const recipient); static void _chat_session_set_composing(const char * const barejid);
static void _chat_session_set_active(const char * const recipient); static void _chat_session_set_active(const char * const barejid);
static void _chat_session_free(ChatSession *session); static void _chat_session_free(ChatSession *session);
void void
@ -99,9 +99,9 @@ _chat_session_new(const char * const barejid, gboolean supported)
} }
static void static void
_chat_session_set_composing(const char * const recipient) _chat_session_set_composing(const char * const barejid)
{ {
ChatSession *session = g_hash_table_lookup(sessions, recipient); ChatSession *session = g_hash_table_lookup(sessions, barejid);
if (session != NULL) { if (session != NULL) {
if (session->state != CHAT_STATE_COMPOSING) { if (session->state != CHAT_STATE_COMPOSING) {
@ -113,9 +113,9 @@ _chat_session_set_composing(const char * const recipient)
} }
static void static void
_chat_session_set_active(const char * const recipient) _chat_session_set_active(const char * const barejid)
{ {
ChatSession *session = g_hash_table_lookup(sessions, recipient); ChatSession *session = g_hash_table_lookup(sessions, barejid);
if (session != NULL) { if (session != NULL) {
session->state = CHAT_STATE_ACTIVE; session->state = CHAT_STATE_ACTIVE;