From 2e3bd5813aa54abe354a46e78ac0ee164027b985 Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Sun, 26 Nov 2023 20:04:12 +0200 Subject: [PATCH] Don't send messages to self device (#267) --- libsignal-service/src/sender.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsignal-service/src/sender.rs b/libsignal-service/src/sender.rs index c6b6aaab2..3e3e18f39 100644 --- a/libsignal-service/src/sender.rs +++ b/libsignal-service/src/sender.rs @@ -630,8 +630,8 @@ where // always send to the primary device no matter what devices.insert(DEFAULT_DEVICE_ID.into()); - // when sending an identified message, remove ourselves from the list of recipients - if unidentified_access.is_none() { + // never try to send messages to the sender device + if recipient.aci() == self.local_address.aci() { devices.remove(&self.device_id); }