Skip to content
Snippets Groups Projects
Commit ca42ec33 authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

replace accidental unwraps with if let's


this provides not only some future compatibility with MSC4051,
but it just makes sense to not crash/error if we can't get a server_name
from the room ID and should just use the server_name from the sender
user's invite event. there is already code ahead that accounts for
an empty vector so this is safe.

Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
parent 81b8f7c3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment