mirror of
https://github.com/status-im/status-react.git
synced 2025-01-17 14:32:00 +00:00
fa8fe11bd7
* chat: fix broken chat delete logic Previously, persisting the chat delete functionality was working only for group chats, where the `debug?` flag decided if delete was a real "hard" delete (deleting data from the realm database) or just marking with the `inactive` flag. However non-group chats were not deleted at all, which I believe is a bug fixed by this commit. * chat: fix broken chat delete logic Fix the branching logic with `if` instead of `when`