From 96fcb75c4c836887c80af3ddc1b4c8e1d4622abb Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Tue, 12 Jan 2021 13:46:39 +0300 Subject: Make sure blankposts are properly displayed unless repeats, playing nice with view desync --- include/courtroom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/courtroom.h') diff --git a/include/courtroom.h b/include/courtroom.h index 92b5a03c..46da7a32 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -349,6 +349,7 @@ private: QVector arup_locks; QVector ic_chatlog_history; + int ic_chatlog_current = -1; QQueue chatmessage_queue; -- cgit From ea94644cf5bbd11f507b318677a7360433a0ae92 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Mon, 18 Jan 2021 17:56:21 +0300 Subject: Attempt a theoretically safer method of tracking last displayed message --- include/courtroom.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/courtroom.h') diff --git a/include/courtroom.h b/include/courtroom.h index 46da7a32..92b5a03c 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -349,7 +349,6 @@ private: QVector arup_locks; QVector ic_chatlog_history; - int ic_chatlog_current = -1; QQueue chatmessage_queue; -- cgit From 78777391467556b1312a00bdf1618619f771476e Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Mon, 18 Jan 2021 18:54:11 +0300 Subject: Simplify the logic behind last message = blankpost detection I need to stop overcomplicating things. --- include/courtroom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/courtroom.h') diff --git a/include/courtroom.h b/include/courtroom.h index 92b5a03c..4cf42e1e 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -349,6 +349,7 @@ private: QVector arup_locks; QVector ic_chatlog_history; + QString last_ic_message = ""; QQueue chatmessage_queue; -- cgit