linagora / twake-on-matrix

A multi-platform (Flutter) application for connecting to Matrix - an open network for secure, decentralized communication, with your favorite devices.
GNU Affero General Public License v3.0
64 stars 18 forks source link

TW-1827: online status is not updated correctly #1879

Closed sherlockvn closed 5 months ago

sherlockvn commented 5 months ago

Updated:

android:

https://github.com/linagora/twake-on-matrix/assets/43041967/12bc31cc-babd-4fb2-a860-bcd8297ddc32

ios:

https://github.com/linagora/twake-on-matrix/assets/43041967/6e10b9f4-b82f-4bda-b9f4-935748262cc6

github-actions[bot] commented 5 months ago

This PR has been deployed to https://linagora.github.io/twake-on-matrix/1879

Te-Z commented 5 months ago

@tprudentova is this solution ok for you ?

Updated:

  • for chat we don't have lastActiveTimestamp, keep offine status (in this case, it means user never online before or in the case of can't get presence of user)
  • for people that offline longer than 10 hours, we display aWhile ago instead of offline
tprudentova commented 5 months ago

@Te-Z if the user was online >10 hours ago, but we can get information about the time when that person was online, please display exact time (like "online 3 days ago") "Offline" and "online a while ago" only for the users for which we don't have any information

sherlockvn commented 5 months ago

@Te-Z if the user was online >10 hours ago, but we can get information about the time when that person was online, please display exact time (like "online 3 days ago") "Offline" and "online a while ago" only for the users for which we don't have any information

After how many days offline should the status change to "online a while ago"?. For users we don't have information, we display "offline"

Te-Z commented 5 months ago

@Te-Z if the user was online >10 hours ago, but we can get information about the time when that person was online, please display exact time (like "online 3 days ago") "Offline" and "online a while ago" only for the users for which we don't have any information

After how many days offline should the status change to "online a while ago"?. For users we don't have information, we display "offline"

@sherlockvn please tag @tprudentova if you need to ask her or send her a message via chat for more efficiency

sherlockvn commented 5 months ago

@tprudentova

tprudentova commented 5 months ago

@sherlockvn @Te-Z I think we can display "online a while ago" after 30 days of absence, similar to telegram

sherlockvn commented 5 months ago

okay np