forked from lavina/lavina
Change from to try_from
This commit is contained in:
parent
538de5e849
commit
ca908dea12
|
@ -893,7 +893,7 @@ async fn handle_join(
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
match chan {
|
match chan {
|
||||||
Chan::Global(chan_name) => {
|
Chan::Global(chan_name) => {
|
||||||
let room_id = RoomId::from(chan_name.clone())?;
|
let room_id = RoomId::try_from(chan_name.clone())?;
|
||||||
match user_handle.join_room(room_id).await? {
|
match user_handle.join_room(room_id).await? {
|
||||||
JoinResult::Success(room_info) => {
|
JoinResult::Success(room_info) => {
|
||||||
produce_on_join_cmd_messages(&config, &user, chan, &room_info, writer).await?;
|
produce_on_join_cmd_messages(&config, &user, chan, &room_info, writer).await?;
|
||||||
|
|
Loading…
Reference in New Issue