Jan Herich fa8fe11bd7 chat: fix broken chat delete logic (#1343)
* 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`
2017-06-26 20:41:58 +03:00
..
2017-06-26 13:45:49 +03:00
2017-06-26 13:45:49 +03:00
2017-06-26 13:45:49 +03:00
2017-04-28 16:45:01 +03:00
2017-05-11 13:27:03 +03:00
2017-06-26 13:45:49 +03:00
2017-05-03 17:07:56 +03:00