This adds an activity trigger to AppState so we can do two things
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
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 adds an activity trigger to AppState so we can do two things
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