Handle Matrix User presence as following:
- set Online when app is active.
- set Unavailable when app is suspended (inactive).
- set Offline when user logs out the app (this option is currently commented because the user is kept offline when he logs in again from web client).

Multidevice handling: the app compares the presence from server with the local value in order to keep the most pertinent.