From 977eb5eab92f48349423eafae7d56c02774e0035 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 15 Feb 2018 13:18:18 +0100 Subject: [PATCH] cast userids to string to avoid issues with numerical IDs Signed-off-by: Arthur Schiwon --- lib/Activity/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Activity/Hooks.php b/lib/Activity/Hooks.php index 949d5ed3ae3..60b597bd329 100644 --- a/lib/Activity/Hooks.php +++ b/lib/Activity/Hooks.php @@ -78,7 +78,7 @@ public function generateCallActivity(Room $room) { $duration = $this->timeFactory->getTime() - $activeSince->getTimestamp(); $participants = $room->getParticipants($activeSince->getTimestamp()); - $userIds = array_keys($participants['users']); + $userIds = array_map('strval', array_keys($participants['users'])); if (empty($userIds) || (count($userIds) === 1 && $room->getActiveGuests() === 0)) { // Single user pinged or guests only => no activity