This PR aims to clamp down on any places the app can crash unexpectedly, mostly by null-checking, exception handling, and attempting to keep the service/application running and connected.
It also fixes a bug where receiving a message from a user who is no longer online (i.e. isn't in the online users list) would crash the app.
This PR aims to clamp down on any places the app can crash unexpectedly, mostly by null-checking, exception handling, and attempting to keep the service/application running and connected.
It also fixes a bug where receiving a message from a user who is no longer online (i.e. isn't in the online users list) would crash the app.