Skip to content

A platform for community discussion. Free, open, simple.

FIX: relies only on message bus to set tracking state (#20785)

Joffrey JAFFEUX67913e59e006
diff --git a/plugins/chat/assets/javascripts/discourse/models/chat-channel.js b/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
index 5c629cf8d67..eaa0f116227 100644
--- a/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
+++ b/plugins/chat/assets/javascripts/discourse/models/chat-channel.js
@@ -172,8 +172,6 @@ export default class ChatChannel extends RestModel {
// class not to use RestModel
return ajax(`/chat/api/channels/${this.id}/read/${messageId}`, {
method: "PUT",
- }).then(() => {
- this.currentUserMembership.last_read_message_id = messageId;
});
}
}