mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 06:48:39 +08:00

This commit does several changes: - it moves the ownership of the last message info to the channel instead of storing it on the message, it avoids the need to iterate over every messages - makes an optimistic update of the last read message id - adds a spec to confirm this behavior