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

This manual set was happening only after the request so was not much faster than just waiting on message bus update. It's not by itself changing any behavior or fixing any bug but it makes reasoning about the whole state easier as it happens in only one central place.
This commit is contained in:
Joffrey JAFFEUX 2023-03-23 11:11:13 +01:00 committed by GitHub
parent 2d46824a87
commit 67913e59e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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;
});
}
}