Fix msg id order when loading from sqlite

This commit is contained in:
Pavel Djundik 2020-04-28 17:45:27 +03:00
parent 801c7a07c0
commit 24d4276a7c

View File

@ -183,8 +183,7 @@ class MessageStorage {
}
resolve(
rows
.map((row) => {
rows.reverse().map((row) => {
const msg = JSON.parse(row.msg);
msg.time = row.time;
msg.type = row.type;
@ -194,7 +193,6 @@ class MessageStorage {
return newMsg;
})
.reverse()
);
}
)