mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed ui_chat_win_exists
This commit is contained in:
parent
c99ff8d941
commit
8f45f332ad
@ -318,7 +318,7 @@ void
|
||||
sv_ev_typing(char *barejid, char *resource)
|
||||
{
|
||||
ui_contact_typing(barejid, resource);
|
||||
if (ui_chat_win_exists(barejid)) {
|
||||
if (wins_chat_exists(barejid)) {
|
||||
chat_session_recipient_typing(barejid, resource);
|
||||
}
|
||||
}
|
||||
@ -326,7 +326,7 @@ sv_ev_typing(char *barejid, char *resource)
|
||||
void
|
||||
sv_ev_paused(char *barejid, char *resource)
|
||||
{
|
||||
if (ui_chat_win_exists(barejid)) {
|
||||
if (wins_chat_exists(barejid)) {
|
||||
chat_session_recipient_paused(barejid, resource);
|
||||
}
|
||||
}
|
||||
@ -334,7 +334,7 @@ sv_ev_paused(char *barejid, char *resource)
|
||||
void
|
||||
sv_ev_inactive(char *barejid, char *resource)
|
||||
{
|
||||
if (ui_chat_win_exists(barejid)) {
|
||||
if (wins_chat_exists(barejid)) {
|
||||
chat_session_recipient_inactive(barejid, resource);
|
||||
}
|
||||
}
|
||||
@ -343,7 +343,7 @@ void
|
||||
sv_ev_gone(const char *const barejid, const char *const resource)
|
||||
{
|
||||
ui_recipient_gone(barejid, resource);
|
||||
if (ui_chat_win_exists(barejid)) {
|
||||
if (wins_chat_exists(barejid)) {
|
||||
chat_session_recipient_gone(barejid, resource);
|
||||
}
|
||||
}
|
||||
@ -351,7 +351,7 @@ sv_ev_gone(const char *const barejid, const char *const resource)
|
||||
void
|
||||
sv_ev_activity(const char *const barejid, const char *const resource, gboolean send_states)
|
||||
{
|
||||
if (ui_chat_win_exists(barejid)) {
|
||||
if (wins_chat_exists(barejid)) {
|
||||
chat_session_recipient_active(barejid, resource, send_states);
|
||||
}
|
||||
}
|
||||
|
@ -46,13 +46,6 @@
|
||||
|
||||
static void _win_show_history(ProfChatWin *chatwin, const char *const contact);
|
||||
|
||||
gboolean
|
||||
ui_chat_win_exists(const char *const barejid)
|
||||
{
|
||||
ProfChatWin *chatwin = wins_get_chat(barejid);
|
||||
return (chatwin != NULL);
|
||||
}
|
||||
|
||||
void
|
||||
ui_message_receipt(const char *const barejid, const char *const id)
|
||||
{
|
||||
|
@ -210,7 +210,6 @@ void ui_show_lines(ProfWin *window, const gchar** lines);
|
||||
void ui_redraw_all_room_rosters(void);
|
||||
void ui_show_all_room_rosters(void);
|
||||
void ui_hide_all_room_rosters(void);
|
||||
gboolean ui_chat_win_exists(const char *const barejid);
|
||||
void ui_handle_software_version_error(const char *const roomjid, const char *const message);
|
||||
void ui_show_software_version(const char *const jid, const char *const presence,
|
||||
const char *const name, const char *const version, const char *const os);
|
||||
|
@ -69,6 +69,13 @@ wins_get_console(void)
|
||||
return g_hash_table_lookup(windows, GINT_TO_POINTER(1));
|
||||
}
|
||||
|
||||
gboolean
|
||||
wins_chat_exists(const char *const barejid)
|
||||
{
|
||||
ProfChatWin *chatwin = wins_get_chat(barejid);
|
||||
return (chatwin != NULL);
|
||||
}
|
||||
|
||||
ProfChatWin*
|
||||
wins_get_chat(const char *const barejid)
|
||||
{
|
||||
|
@ -45,6 +45,8 @@ ProfWin* wins_new_muc(const char *const roomjid);
|
||||
ProfWin* wins_new_muc_config(const char *const roomjid, DataForm *form);
|
||||
ProfWin* wins_new_private(const char *const fulljid);
|
||||
|
||||
gboolean wins_chat_exists(const char *const barejid);
|
||||
|
||||
ProfWin* wins_get_console(void);
|
||||
ProfChatWin* wins_get_chat(const char *const barejid);
|
||||
ProfMucWin* wins_get_muc(const char *const roomjid);
|
||||
|
@ -256,10 +256,6 @@ void ui_group_added(const char * const contact, const char * const group) {}
|
||||
void ui_group_removed(const char * const contact, const char * const group) {}
|
||||
void ui_chat_win_contact_online(PContact contact, Resource *resource, GDateTime *last_activity) {}
|
||||
void ui_chat_win_contact_offline(PContact contact, char *resource, char *status) {}
|
||||
gboolean ui_chat_win_exists(const char * const barejid)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void ui_contact_offline(char *barejid, char *resource, char *status) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user