Avoid flicker when moving between channels

This commit is contained in:
Max Brunsfeld 2023-08-15 13:18:56 -07:00
parent 46928fa871
commit ddf3642d47
3 changed files with 13 additions and 13 deletions

View file

@ -2415,6 +2415,7 @@ async fn join_channel(
let channel_id = ChannelId::from_proto(request.channel_id);
let joined_room = {
leave_room_for_session(&session).await?;
let db = session.db().await;
let room_id = db.room_id_for_channel(channel_id).await?;