Skip to content

Commit

Permalink
Don't send messages to self device (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 authored Nov 26, 2023
1 parent 6fc62c8 commit 2e3bd58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsignal-service/src/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2e3bd58

Please sign in to comment.