Skip to content

Commit 18b5b18

Browse files
authored
Merge pull request matrix-org#6740 from matrix-org/dbkr/debug_stuck_toast
Add logging to debug stuck toast bug
2 parents 6801ec7 + 90824d3 commit 18b5b18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DeviceListener.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export default class DeviceListener {
100100
* @param {String[]} deviceIds List of device IDs to dismiss notifications for
101101
*/
102102
async dismissUnverifiedSessions(deviceIds: Iterable<string>) {
103+
console.log("Dismissing unverified sessions: " + Array.from(deviceIds).join(','));
103104
for (const d of deviceIds) {
104105
this.dismissed.add(d);
105106
}
@@ -285,6 +286,9 @@ export default class DeviceListener {
285286
}
286287
}
287288

289+
console.log("Old unverified sessions: " + Array.from(oldUnverifiedDeviceIds).join(','));
290+
console.log("New unverified sessions: " + Array.from(newUnverifiedDeviceIds).join(','));
291+
288292
// Display or hide the batch toast for old unverified sessions
289293
if (oldUnverifiedDeviceIds.size > 0) {
290294
showBulkUnverifiedSessionsToast(oldUnverifiedDeviceIds);

0 commit comments

Comments
 (0)