mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-21 23:04:49 +01:00
fix: ignore cursor events from self
This commit is contained in:
parent
5f1f43e645
commit
9f8245a9a4
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ impl ControllerWorker<CursorEvent> for CursorControllerWorker {
|
|||
loop {
|
||||
tokio::select!{
|
||||
Ok(Some(cur)) = rx.message() => {
|
||||
if cur.user == self.uid { continue }
|
||||
self.channel.send(cur.clone()).unwrap_or_warn("could not broadcast event");
|
||||
self.changed.send(cur).unwrap_or_warn("could not update last event");
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue