|
|
|
@ -4654,8 +4654,7 @@ export class AppMessagesManager {
@@ -4654,8 +4654,7 @@ export class AppMessagesManager {
|
|
|
|
|
mids.splice(i, 0, offset_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const slice = historyStorage.history.insertSlice(mids); |
|
|
|
|
if(slice) { |
|
|
|
|
const slice = historyStorage.history.insertSlice(mids) || historyStorage.history.slice; |
|
|
|
|
if(isTopEnd) { |
|
|
|
|
slice.setEnd(SliceEnd.Top); |
|
|
|
|
} |
|
|
|
@ -4664,7 +4663,6 @@ export class AppMessagesManager {
@@ -4664,7 +4663,6 @@ export class AppMessagesManager {
|
|
|
|
|
slice.setEnd(SliceEnd.Bottom); |
|
|
|
|
historyStorage.maxId = slice[0]; // ! WARNING
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* const isBackLimit = offset < 0 && -offset !== fullLimit; |
|
|
|
|
if(isBackLimit) { |
|
|
|
|