Browse Source

Fix scrolling to end of history on history append

master
Eduard Kuzmenko 4 years ago
parent
commit
c32a7cea12
  1. 3
      src/lib/appManagers/appMessagesManager.ts

3
src/lib/appManagers/appMessagesManager.ts

@ -1339,9 +1339,8 @@ export class AppMessagesManager {
//if(!options.isGroupedItem) { //if(!options.isGroupedItem) {
this.saveMessages([message], {storage, isOutgoing: true}); this.saveMessages([message], {storage, isOutgoing: true});
setTimeout(() => { setTimeout(() => {
rootScope.broadcast('history_append', {peerId, messageId, my: true});
this.setDialogTopMessage(message); this.setDialogTopMessage(message);
rootScope.broadcast('history_append', {peerId, messageId, my: true});
}, 0); }, 0);
} }

Loading…
Cancel
Save