You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Add logging to debug stuck toast bug
For https://github.com/vector-im/element-web/issues/18603
This commit is contained in:
@@ -100,6 +100,7 @@ export default class DeviceListener {
|
|||||||
* @param {String[]} deviceIds List of device IDs to dismiss notifications for
|
* @param {String[]} deviceIds List of device IDs to dismiss notifications for
|
||||||
*/
|
*/
|
||||||
async dismissUnverifiedSessions(deviceIds: Iterable<string>) {
|
async dismissUnverifiedSessions(deviceIds: Iterable<string>) {
|
||||||
|
console.log("Dismissing unverified sessions: " + Array.from(deviceIds).join(','));
|
||||||
for (const d of deviceIds) {
|
for (const d of deviceIds) {
|
||||||
this.dismissed.add(d);
|
this.dismissed.add(d);
|
||||||
}
|
}
|
||||||
@@ -285,6 +286,9 @@ export default class DeviceListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Old unverified sessions: " + Array.from(oldUnverifiedDeviceIds).join(','));
|
||||||
|
console.log("New unverified sessions: " + Array.from(newUnverifiedDeviceIds).join(','));
|
||||||
|
|
||||||
// Display or hide the batch toast for old unverified sessions
|
// Display or hide the batch toast for old unverified sessions
|
||||||
if (oldUnverifiedDeviceIds.size > 0) {
|
if (oldUnverifiedDeviceIds.size > 0) {
|
||||||
showBulkUnverifiedSessionsToast(oldUnverifiedDeviceIds);
|
showBulkUnverifiedSessionsToast(oldUnverifiedDeviceIds);
|
||||||
|
|||||||
Reference in New Issue
Block a user