Skip to content

Commit

Permalink
mark private messages as read
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 5, 2024
1 parent b56e863 commit 96e8428
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ func onNewMsg(bot *deltachat.Bot, accId deltachat.AccountId, msgId deltachat.Msg
}
if chat.ChatType == deltachat.ChatSingle {
logger.Debugf("Got new 1:1 message: %#v", msg)
err = bot.Rpc.MarkseenMsgs(accId, []deltachat.MsgId{msg.Id})
if err != nil {
logger.Error(err)
}
sendApp(bot.Rpc, accId, msg.ChatId)
}
}
Expand Down

0 comments on commit 96e8428

Please sign in to comment.