mirror of
https://github.com/discourse/discourse.git
synced 2025-03-13 08:05:31 +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