decent-chat / decent

Open source messaging platform for the modern web
https://meta.decent.chat
GNU General Public License v3.0
21 stars 5 forks source link

Very simple half-fix for unread messages #279

Closed towerofnix closed 6 years ago

towerofnix commented 6 years ago

This PR makes unreadMessageCount be set to zero in the sidebar after scrolling to the end of a channel. There are certainly edge-cases - what to do when viewing a channel with so few messages that it is impossible to scroll comes to mind - but those really are edge-cases. This is a quick fix for typical cases (channels with lots of messages).