File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
client/state/Notifications Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ - thread issue fixed.
2+ - crypto issue fixed.
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments