mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Renamed recipient->barejid in chat sessions
This commit is contained in:
parent
894360dc81
commit
e75b8dcfb3
@ -65,9 +65,9 @@ typedef struct chat_session_t {
|
||||
|
||||
static GHashTable *sessions;
|
||||
|
||||
static ChatSession* _chat_session_new(const char * const recipient, gboolean supported);
|
||||
static void _chat_session_set_composing(const char * const recipient);
|
||||
static void _chat_session_set_active(const char * const recipient);
|
||||
static ChatSession* _chat_session_new(const char * const barejid, gboolean supported);
|
||||
static void _chat_session_set_composing(const char * const barejid);
|
||||
static void _chat_session_set_active(const char * const barejid);
|
||||
static void _chat_session_free(ChatSession *session);
|
||||
|
||||
void
|
||||
@ -99,9 +99,9 @@ _chat_session_new(const char * const barejid, gboolean supported)
|
||||
}
|
||||
|
||||
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->state != CHAT_STATE_COMPOSING) {
|
||||
@ -113,9 +113,9 @@ _chat_session_set_composing(const char * const recipient)
|
||||
}
|
||||
|
||||
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) {
|
||||
session->state = CHAT_STATE_ACTIVE;
|
||||
|
Loading…
Reference in New Issue
Block a user