mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Renamed _win_show_history -> _chatwin_history
This commit is contained in:
parent
31016a2150
commit
77e854c1e8
@ -45,7 +45,7 @@
|
|||||||
#include "ui/window.h"
|
#include "ui/window.h"
|
||||||
#include "ui/titlebar.h"
|
#include "ui/titlebar.h"
|
||||||
|
|
||||||
static void _win_show_history(ProfChatWin *chatwin, const char *const contact);
|
static void _chatwin_history(ProfChatWin *chatwin, const char *const contact);
|
||||||
|
|
||||||
ProfChatWin*
|
ProfChatWin*
|
||||||
chatwin_new(const char *const barejid)
|
chatwin_new(const char *const barejid)
|
||||||
@ -54,7 +54,7 @@ chatwin_new(const char *const barejid)
|
|||||||
ProfChatWin *chatwin = (ProfChatWin *)window;
|
ProfChatWin *chatwin = (ProfChatWin *)window;
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_CHLOG) && prefs_get_boolean(PREF_HISTORY)) {
|
if (prefs_get_boolean(PREF_CHLOG) && prefs_get_boolean(PREF_HISTORY)) {
|
||||||
_win_show_history(chatwin, barejid);
|
_chatwin_history(chatwin, barejid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the contact is offline, show a message
|
// if the contact is offline, show a message
|
||||||
@ -249,7 +249,7 @@ chatwin_incoming_msg(ProfChatWin *chatwin, const char *const resource, const cha
|
|||||||
|
|
||||||
chatwin->unread++;
|
chatwin->unread++;
|
||||||
if (prefs_get_boolean(PREF_CHLOG) && prefs_get_boolean(PREF_HISTORY)) {
|
if (prefs_get_boolean(PREF_CHLOG) && prefs_get_boolean(PREF_HISTORY)) {
|
||||||
_win_show_history(chatwin, chatwin->barejid);
|
_chatwin_history(chatwin, chatwin->barejid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// show users status first, when receiving message via delayed delivery
|
// show users status first, when receiving message via delayed delivery
|
||||||
@ -336,7 +336,7 @@ ui_chat_win_contact_offline(PContact contact, char *resource, char *status)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_win_show_history(ProfChatWin *chatwin, const char *const contact)
|
_chatwin_history(ProfChatWin *chatwin, const char *const contact)
|
||||||
{
|
{
|
||||||
if (!chatwin->history_shown) {
|
if (!chatwin->history_shown) {
|
||||||
Jid *jid = jid_create(jabber_get_fulljid());
|
Jid *jid = jid_create(jabber_get_fulljid());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user