matrix-bot-sdk icon indicating copy to clipboard operation
matrix-bot-sdk copied to clipboard

Add ability to distinguish between non-existent aliases and other failures when calling `resolveRoom`

Open squahtx opened this issue 3 years ago • 0 comments

When calling resolveRoom or lookupRoomAlias, there is currently no clean way to distinguish between a non-existent room alias and other failures, which ought to be handled differently.

This makes it difficult to correctly test whether a room already exists at a given alias. A use case for this might be a bot that is trying to create a room if it doesn't already exist.

squahtx avatar Jan 18 '22 15:01 squahtx