skip send notification for self message

This commit is contained in:
2026-07-20 13:27:16 +07:00
parent 07085449a4
commit cdfecf2ee0

View File

@@ -154,7 +154,10 @@ class Nostr(
// Trigger new message notification // Trigger new message notification
if (rumor != null) { 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) onNewMessage(rumor)
} }
} }