File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ public function flushPayloads(): void {
136136 $ this ->deferPreparing = false ;
137137
138138 if (!empty ($ this ->loadDevicesForUsers )) {
139+ $ this ->loadDevicesForUsers = array_unique ($ this ->loadDevicesForUsers );
139140 $ missingDevicesFor = array_diff ($ this ->loadDevicesForUsers , array_keys ($ this ->userDevices ));
140141 $ newUserDevices = $ this ->getDevicesForUsers ($ missingDevicesFor );
141142 foreach ($ missingDevicesFor as $ userId ) {
@@ -145,6 +146,7 @@ public function flushPayloads(): void {
145146 }
146147
147148 if (!empty ($ this ->loadStatusForUsers )) {
149+ $ this ->loadStatusForUsers = array_unique ($ this ->loadStatusForUsers );
148150 $ missingStatusFor = array_diff ($ this ->loadStatusForUsers , array_keys ($ this ->userStatuses ));
149151 $ newUserStatuses = $ this ->userStatusManager ->getUserStatuses ($ missingStatusFor );
150152 foreach ($ missingStatusFor as $ userId ) {
You can’t perform that action at this time.
0 commit comments