chore: improve notification #48

Merged
reya merged 2 commits from fix-notification into master 2026-07-20 07:02:01 +00:00
Showing only changes of commit cdfecf2ee0 - Show all commits

View File

@@ -154,7 +154,10 @@ class Nostr(
// Trigger new message notification
if (rumor != null) {
if (rumor.createdAt().asSecs() >= now.asSecs()) {
val isSelfMessage = rumor.author() == signer.publicKeyFlow.value
val isNew = rumor.createdAt().asSecs() >= now.asSecs()
if (isNew && !isSelfMessage) {
onNewMessage(rumor)
}
}