Feat/109 status indicator update
I added an indicator status that krack whether a user is online or disconnected of a current session, as you can see on the image below (red for disconnected and green for connected).
So, the logic is simple, I noticed that there is an attribut called is_active
for each user which is true by default. So, when a user logs out, I turned this value to False. So, in Message.svelte
, I handle the user status based on this attribut.
But the issue is not yet ended up, I need to think how to handle the fact that a user is still connected but not present in the session. So, I was wondering about if I need to set a timer to track the inactivity of a user (e.g if a user didn't make an action during a while, I set its presence as inactive ?)
Rapports de requête de fusion
Activité
requested review from @bridubois
assigned to @DavePikopPokam