Skip to content

Fix room state log changing on room reload

Michael Hollister requested to merge michael/bugfix-room-state-log-changes into main

There is a bug when you create a group and view the timeline, the branch that will execute is Text("*\(sender) sent an unknown message (\(message.type))*") due to message.stateKey being nil. However if you go back and re-enter the group room, the timeline will then print Text("*\(sender) updated the \(roomType) state*") since the message.stateKey is updated to the empty string "".

I figured I would remove the conditional branch to prevent this issue.

Merge request reports

Loading