Skip to content

Commit e91ceb8

Browse files
thread issue fixed
1 parent 31fbee0 commit e91ceb8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

info/dev/preparing-changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- thread issue fixed.
2+
- crypto issue fixed.

src/client/state/Notifications/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class Notifications extends EventEmitter {
458458
total ?? 0,
459459
highlight ?? 0,
460460
);
461-
this.emit(cons.events.notifications.THREAD_NOTIFICATION, mEvent.thread);
461+
if (mEvent.thread) this.emit(cons.events.notifications.THREAD_NOTIFICATION, mEvent.thread);
462462

463463
if (this.matrixClient.getSyncState() === 'SYNCING') {
464464
this._displayPopupNoti(mEvent, room);

src/util/web3/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const startWeb3 = (/* tcall */) => {
224224
tinyCrypto.isUnlocked = () => window.ethereum && window.ethereum._isUnlocked;
225225

226226
// Emitter
227-
class MyEmitter extends EventEmitter { }
227+
class MyEmitter extends EventEmitter {}
228228
const myEmitter = new MyEmitter();
229229
myEmitter.setMaxListeners(Infinity);
230230

@@ -267,7 +267,10 @@ const startWeb3 = (/* tcall */) => {
267267
})
268268
.catch(reject);
269269
})
270-
.catch(err => { console.error(err); resolve(null); });
270+
.catch((err) => {
271+
console.error(err);
272+
resolve(null);
273+
});
271274
} else {
272275
reject(tinyCrypto.errors.noProvider());
273276
}

0 commit comments

Comments
 (0)