From 47e55cc1127a80397ed139bd70443cc7c277d006 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 11 Jun 2019 06:35:03 +0200 Subject: 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. --- src/ui/mucwin.c | 2 ++ src/ui/win_types.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/ui') 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); diff --git a/src/ui/win_types.h b/src/ui/win_types.h index e1e64bf9..bf5a181c 100644 --- a/src/ui/win_types.h +++ b/src/ui/win_types.h @@ -173,6 +173,7 @@ typedef struct prof_muc_win_t { char *enctext; char *message_char; GHashTable *sent_messages; + GDateTime *last_msg_timestamp; } ProfMucWin; typedef struct prof_conf_win_t ProfConfWin; -- cgit 1.4.1-2-gfad0 about summary refs log tree commit diff stats
path: root/tools/iso/kernel.soso/tty.h
blob: df39e6cd0d081d19796cf0007c9c671c590af4fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41