From e7a6601ddbc4188d5551790a4a2d3de03aa1fb43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 26 Sep 2023 15:35:24 +0200 Subject: [PATCH] Fix adding participants that previously participated invisibly Adding participants after-the-fact is only allowed with visible participants. However the case of an invisible participant being re-added after previously being removed was not correctly handled: The participant remained invisible, but a log message about them being added was created. --- files/lib/data/conversation/ConversationEditor.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/files/lib/data/conversation/ConversationEditor.class.php b/files/lib/data/conversation/ConversationEditor.class.php index 1c98e78..ea19168 100644 --- a/files/lib/data/conversation/ConversationEditor.class.php +++ b/files/lib/data/conversation/ConversationEditor.class.php @@ -85,6 +85,7 @@ class ConversationEditor extends DatabaseObjectEditor VALUES (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE hideConversation = 0, + isInvisible = 0, leftAt = 0, leftByOwnChoice = 1"; $statement = WCF::getDB()->prepareStatement($sql); -- 2.20.1