Blazored / Gitter

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

Feature activity timeout #16

Closed SQL-MisterMagoo closed 5 years ago

SQL-MisterMagoo commented 5 years ago

This adds an activity trigger to AppState so we can do two things

  1. Timeout the monitoring of messages if the user is inactive this will display a "Paused" overlay and pause the fetching of new messages - primarily intended for mobile/metered connections to reduce network usage
  2. It will also be useful for issue 6 as we will be able to detect when a user is active and messages are visible to mark them as read.

As part of this process, there were a couple of minor tweaks to layout and scrolling, which meant moving some ad-hoc JS Interop out into a proper chat.js (I'll leave TS to the experts) and JSRuntime extension methods.

This fixes #15