about summary refs log tree commit diff stats
path: root/src/ui/mucwin.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-06-11 06:35:03 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-06-11 06:35:03 +0200
commit47e55cc1127a80397ed139bd70443cc7c277d006 (patch)
tree47faf6a58df95db380c6c6f25fcdd9ad496bd206 /src/ui/mucwin.c
parentce5a4ed77cb8e9912747a5450b43093fb2df65f5 (diff)
downloadprofani-tty-47e55cc1127a80397ed139bd70443cc7c277d006.tar.gz
Safe last MUC message timestamp per MUC
After pasis review of my code he thinks it's better to safe the
timestamp per MUC so we can account for some problems that could occur
with timing.
Diffstat (limited to 'src/ui/mucwin.c')
-rw-r--r--src/ui/mucwin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index b56cd994..18fd13f4 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -54,6 +54,8 @@ mucwin_new(const char *const barejid)
     ProfWin *window = wins_new_muc(barejid);
     ProfMucWin *mucwin = (ProfMucWin *)window;
 
+    mucwin->last_msg_timestamp = NULL;
+
 #ifdef HAVE_OMEMO
     if (muc_anonymity_type(mucwin->roomjid) == MUC_ANONYMITY_TYPE_NONANONYMOUS && omemo_automatic_start(barejid)) {
         omemo_start_muc_sessions(barejid);