Blazored / Gitter

A Blazor Gitter Client
MIT License
37 stars 14 forks source link

Add a method for detecting and responding to user activity #15

Closed SQL-MisterMagoo closed 5 years ago

SQL-MisterMagoo commented 5 years ago

This is a utility enhancement that allows for timeout on message monitoring and eventually for marking messages as read when the user is active.

AppState has a new RecordActivity() method that resets the timeout timer and new Events for when timeout happens and when the timeout time changes. The timeout event is used in the RoomTitle component to display a paused message and in the RoomMessages component to pause the new messages monitor.