@@ -260,7 +260,6 @@ class UpdateManager {
260260 await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_processUpdates ) . call ( this , update , false ) ;
261261 }
262262 if ( _2_tl_js_1 . Api . is ( "updates.difference" , difference ) ) {
263- await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_setState ) . call ( this , difference . state ) ;
264263 __classPrivateFieldGet ( this , _UpdateManager_LrecoverUpdateGap , "f" ) . debug ( "recovered from update gap" ) ;
265264 break ;
266265 }
@@ -512,19 +511,13 @@ _a = UpdateManager, _UpdateManager_c = new WeakMap(), _UpdateManager_updateState
512511 await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_processChannelPtsUpdateInner ) . call ( this , update , checkGap ) ;
513512 } ) ;
514513} , _UpdateManager_processPtsUpdateInner = async function _UpdateManager_processPtsUpdateInner ( update , checkGap ) {
515- let localState ;
516- if ( update . pts != 0 ) {
517- if ( checkGap ) {
518- await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_checkGap ) . call ( this , update . pts , update . pts_count ) ;
519- if ( await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_needsGetDifference ) . call ( this , update ) ) {
520- await this . recoverUpdateGap ( "needsGetDifference" ) ;
521- }
522- localState = await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_getLocalState ) . call ( this ) ;
514+ if ( update . pts != 0 && checkGap ) {
515+ await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_checkGap ) . call ( this , update . pts , update . pts_count ) ;
516+ if ( await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_needsGetDifference ) . call ( this , update ) ) {
517+ await this . recoverUpdateGap ( "needsGetDifference" ) ;
523518 }
524519 }
525- if ( ! localState ) {
526- localState = await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_getLocalState ) . call ( this ) ;
527- }
520+ const localState = await __classPrivateFieldGet ( this , _UpdateManager_instances , "m" , _UpdateManager_getLocalState ) . call ( this ) ;
528521 if ( localState . pts + update . pts_count > update . pts ) {
529522 return ;
530523 }
0 commit comments