forked from Ivasoft/mattermost-mobile
24 lines
506 B
TypeScript
24 lines
506 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
type WebsocketBroadcast = {
|
|
omit_users: Dictionary<boolean>;
|
|
user_id: string;
|
|
channel_id: string;
|
|
team_id: string;
|
|
}
|
|
|
|
type WebSocketMessage<T = any> = {
|
|
event: string;
|
|
data: T;
|
|
broadcast: WebsocketBroadcast;
|
|
seq: number;
|
|
}
|
|
|
|
type ThreadReadChangedData = {
|
|
thread_id: string;
|
|
timestamp: number;
|
|
unread_mentions: number;
|
|
unread_replies: number;
|
|
};
|