Improved sync
rm debug
This commit is contained in:
parent
f0a551e1aa
commit
4c00dca398
@ -3109,7 +3109,6 @@ angular.module('myApp.services')
|
|||||||
var channelID = AppPeersManager.isChannel(peerID) ? -peerID : 0
|
var channelID = AppPeersManager.isChannel(peerID) ? -peerID : 0
|
||||||
var mid = AppMessagesIDsManager.getFullMessageID(update.id, channelID)
|
var mid = AppMessagesIDsManager.getFullMessageID(update.id, channelID)
|
||||||
var message = messagesStorage[mid]
|
var message = messagesStorage[mid]
|
||||||
console.warn(dT(), update, pendingData, message)
|
|
||||||
if (message) {
|
if (message) {
|
||||||
var historyStorage = historiesStorage[peerID]
|
var historyStorage = historiesStorage[peerID]
|
||||||
var pos = historyStorage.pending.indexOf(tempID)
|
var pos = historyStorage.pending.indexOf(tempID)
|
||||||
|
@ -3419,7 +3419,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
filter: {_: 'channelMessagesFilterEmpty'},
|
filter: {_: 'channelMessagesFilterEmpty'},
|
||||||
pts: channelState.pts,
|
pts: channelState.pts,
|
||||||
limit: 30
|
limit: 30
|
||||||
}).then(function (differenceResult) {
|
}, {timeout: 0x7fffffff}).then(function (differenceResult) {
|
||||||
// console.log(dT(), 'channel diff result', differenceResult)
|
// console.log(dT(), 'channel diff result', differenceResult)
|
||||||
channelState.pts = differenceResult.pts
|
channelState.pts = differenceResult.pts
|
||||||
|
|
||||||
@ -3467,6 +3467,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
$rootScope.$broadcast('stateSynchronized')
|
$rootScope.$broadcast('stateSynchronized')
|
||||||
channelState.syncLoading = false
|
channelState.syncLoading = false
|
||||||
}
|
}
|
||||||
|
}, function () {
|
||||||
|
channelState.syncLoading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user