fix(persistence): fix offline message pagination (#1361)

* fix(persistence): fix offline message pagination

* chore(persistence): update changelog

* fix(persistence): fix pagination offline

* fix test
This commit is contained in:
Salvatore Giordano
2022-10-24 12:49:25 +02:00
committed by GitHub
parent 9369defe11
commit 5784c53e6b
3 changed files with 11 additions and 3 deletions
@@ -382,8 +382,8 @@ void main() {
messagePagination: pagination,
);
expect(fetchedMessages.length, limit);
expect(fetchedMessages.first.id, greaterThanOrEqual);
expect(fetchedMessages.last.id != lessThan, true);
expect(fetchedMessages.last.id, 'testMessageId${cid}24');
expect(fetchedMessages.first.id != lessThan, true);
});
test('updateMessages', () async {