Skip to content

Commit

Permalink
Quick and dirty display of MAM messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jubalh committed Apr 9, 2020
1 parent 7d5a939 commit 5aacd3d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ui/chatwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#include "omemo/omemo.h"
#endif

static void _chatwin_history(ProfChatWin *chatwin, const char *const contact_barejid);
/*static void _chatwin_history(ProfChatWin *chatwin, const char *const contact_barejid);*/
static void _chatwin_set_last_message(ProfChatWin *chatwin, const char *const id, const char *const message);

ProfChatWin*
Expand All @@ -67,7 +67,7 @@ chatwin_new(const char *const barejid)
ProfChatWin *chatwin = (ProfChatWin *)window;

if (prefs_get_boolean(PREF_CHLOG) && prefs_get_boolean(PREF_HISTORY)) {
_chatwin_history(chatwin, barejid);
//_chatwin_history(chatwin, barejid);
}

// if the contact is offline, show a message
Expand All @@ -87,6 +87,7 @@ chatwin_new(const char *const barejid)
}
#endif

iq_mam_request(chatwin);
return chatwin;
}

Expand Down Expand Up @@ -278,7 +279,7 @@ chatwin_incoming_msg(ProfChatWin *chatwin, ProfMessage *message, gboolean win_cr
chatwin->unread++;

if (prefs_get_boolean(PREF_CHLOG) && prefs_get_boolean(PREF_HISTORY)) {
_chatwin_history(chatwin, chatwin->barejid);
// _chatwin_history(chatwin, chatwin->barejid);
}

// show users status first, when receiving message via delayed delivery
Expand Down Expand Up @@ -477,6 +478,7 @@ chatwin_unset_outgoing_char(ProfChatWin *chatwin)
}
}

/*
static void
_chatwin_history(ProfChatWin *chatwin, const char *const contact_barejid)
{
Expand All @@ -494,6 +496,7 @@ _chatwin_history(ProfChatWin *chatwin, const char *const contact_barejid)
g_slist_free_full(history, (GDestroyNotify)message_free);
}
}
*/

static void
_chatwin_set_last_message(ProfChatWin *chatwin, const char *const id, const char *const message)
Expand Down

0 comments on commit 5aacd3d

Please sign in to comment.