Possible fix of saving bad chat state
This commit is contained in:
parent
357eb1a9c1
commit
0eb211e0db
@ -249,7 +249,7 @@ export class AppImManager {
|
||||
const key = chat.peerId + (chat.threadId ? '_' + chat.threadId : '');
|
||||
|
||||
const chatPositions = sessionStorage.getFromCache('chatPositions');
|
||||
if(!(chat.bubbles.scrollable.getDistanceToEnd() <= 16 && chat.bubbles.scrollable.loadedAll.bottom)) {
|
||||
if(!(chat.bubbles.scrollable.getDistanceToEnd() <= 16 && chat.bubbles.scrollable.loadedAll.bottom) && Object.keys(chat.bubbles.bubbles).length) {
|
||||
const position = {
|
||||
mids: getObjectKeysAndSort(chat.bubbles.bubbles, 'desc'),
|
||||
top
|
||||
|
Loading…
x
Reference in New Issue
Block a user