Skip to content

Commit

Permalink
Fixed replies display
Browse files Browse the repository at this point in the history
  • Loading branch information
f-r00t committed May 14, 2024
1 parent 2c511d5 commit 31e28fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Database.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
});

Expand Down

0 comments on commit 31e28fc

Please sign in to comment.