Skip to content

Commit

Permalink
refactor: remove client clone
Browse files Browse the repository at this point in the history
  • Loading branch information
torrybr committed Nov 11, 2024
1 parent dd1c78f commit eb1a0ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/matrix-sdk/src/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3150,11 +3150,10 @@ impl Room {
pub fn subscribe_to_live_location_shares(&self) -> LiveLocationSubscription {
let (sender, receiver) = broadcast::channel(128);

let client = self.client.clone();
let room_id = self.room_id().to_owned();
let room = self.clone();

let beacon_event_handler_handle = client.add_room_event_handler(&room_id, {
let beacon_event_handler_handle = self.client.add_room_event_handler(&room_id, {
move |event: OriginalSyncBeaconEvent| async move {
let user_id = event.sender;

Expand Down

0 comments on commit eb1a0ce

Please sign in to comment.