MM-56071: Thread presence indicator (#25694)
We also track the channelID of the thread opened. Additionally on every connection create or re-connect with an existing queue, we reset the active state to empty to avoid any edge-cases. https://mattermost.atlassian.net/browse/MM-56071 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
45ba1dc196
Коммит
c42ae47948
@@ -396,6 +396,13 @@ export default class WebSocketClient {
|
||||
this.sendMessage('presence', data, callback);
|
||||
}
|
||||
|
||||
updateActiveThread(channelId: string, callback?: (msg: any) => void) {
|
||||
const data = {
|
||||
thread_channel_id: channelId,
|
||||
};
|
||||
this.sendMessage('presence', data, callback);
|
||||
}
|
||||
|
||||
userUpdateActiveStatus(userIsActive: boolean, manual: boolean, callback?: () => void) {
|
||||
const data = {
|
||||
user_is_active: userIsActive,
|
||||
|
||||
Ссылка в новой задаче
Block a user