diff --git a/src/Database.js b/src/Database.js index cec9c9c..2648ee8 100644 --- a/src/Database.js +++ b/src/Database.js @@ -1391,7 +1391,9 @@ export async function getGroupMessages(group=false, limit=25) { for (let i = 0; i < data.rows.length; i++) { const item = data.rows.item(i); - thisMessage = { + console.log(item); + + const thisMessage = { nickname: item.nickname, type: item.type, message: item.message, diff --git a/src/Groups.js b/src/Groups.js index 469ed08..6d2bc0c 100644 --- a/src/Groups.js +++ b/src/Groups.js @@ -818,7 +818,7 @@ export class GroupChatScreenNoTranslation extends React.Component { Globals.updateGroupsFunctions.push(async () => { this.setState({ - messages: await getGroupMessages(this.state.key, Globals.messagesLoaded + 1) + messages: await getGroupMessages(this.state.key, Globals.messagesLoaded) }) });