We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a69387 commit e161690Copy full SHA for e161690
crates/core/src/operations/update.rs
@@ -703,7 +703,7 @@ impl OpManager {
703
// Allow the sender (or ourselves) to stay in the broadcast list when we're
704
// originating the UPDATE so local auto-subscribes still receive events.
705
let is_sender = &pk.peer == sender;
706
- let is_self = self_peer.as_ref().map_or(false, |me| &pk.peer == me);
+ let is_self = self_peer.as_ref() == Some(&pk.peer);
707
if is_sender || is_self {
708
allow_self
709
} else {
0 commit comments