forked from lavina/lavina
Compare commits
3 Commits
bb4bc43abf
...
cb071057b4
Author | SHA1 | Date |
---|---|---|
Nikita Vilunov | cb071057b4 | |
Nikita Vilunov | 8a0a0c0935 | |
Nikita Vilunov | 43d105ab23 |
|
@ -414,6 +414,7 @@ impl Player {
|
||||||
} else {
|
} else {
|
||||||
let room = self.services.rooms.get_room(&self.services, &room_id).await;
|
let room = self.services.rooms.get_room(&self.services, &room_id).await;
|
||||||
if let Some(room) = room {
|
if let Some(room) = room {
|
||||||
|
room.subscribe(&self.player_id, self.handle.clone()).await;
|
||||||
self.my_rooms.insert(room_id, RoomRef::Local(room));
|
self.my_rooms.insert(room_id, RoomRef::Local(room));
|
||||||
} else {
|
} else {
|
||||||
tracing::error!("Room #{room_id:?} not found");
|
tracing::error!("Room #{room_id:?} not found");
|
||||||
|
|
Loading…
Reference in New Issue