Fix a crash that could happen when changing view while deleting a chatroom

1 job for master in 4 minutes and 54 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #492931
macosx-xcode12
job-ios

00:04:54