Consider how to avoid the need for an unwrap of error
properties
#12
Labels
enhancement
New feature or improved functionality.
error
properties
#12
The
RoomStatus
andConnectionStatus
types introduced in #9 are currently just copied from the JS type. They have acurrent
state property and an optionalerror
property. I believe thaterror
is guaranteed to be non-nil for certain values ofcurrent
, so it should be possible for us to design an API that doesn't require an unwrap oferror
in those cases (i.e. make the error an associated value of the state enum). To do this, we first of all need to understand in which states the error is:(Ditto for the corresponding
*StateChange
types.)┆Issue is synchronized with this Jira Story by Unito
The text was updated successfully, but these errors were encountered: