From 5d6a6662290c7d02272902519109896bdb85ff82 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 16 May 2024 14:02:19 +0200 Subject: [PATCH] fix(tests): Fix system handling in tests Signed-off-by: Joas Schilling --- tests/integration/features/bootstrap/FeatureContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 00cf9832c8f..99c2ca3e6ae 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -2506,7 +2506,7 @@ public function userSeesTheFollowingSystemMessagesInRoom($user, $identifier, $st $data = [ 'room' => self::$tokenToIdentifier[$message['token']], 'actorType' => (string) $message['actorType'], - 'actorId' => ($message['actorType'] === 'guests') ? self::$sessionIdToUser[$message['actorId']] : (string) $message['actorId'], + 'actorId' => ($message['actorType'] === 'guests' && $message['actorId'] !== 'system') ? self::$sessionIdToUser[$message['actorId']] : (string) $message['actorId'], 'systemMessage' => (string) $message['systemMessage'], ];