forked from Ivasoft/mattermost-mobile
* WS Events, Actions, Queries, Thread Follow, Post Query * i18n changes * Misc * Only unread threads are marked as read * Mark threads from WS even as visible in Global threads * Merge fixes * Update thread_post_list.tsx * Merge fix * Feedback fix * Make teamId in handleThreads optional for unfollowed threads * Removed unwated type and return * Review changes * Removing unused model * Merge fix * Misc fixes * Following button query change
24 lines
499 B
TypeScript
24 lines
499 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 = {
|
|
event: string;
|
|
data: any;
|
|
broadcast: WebsocketBroadcast;
|
|
seq: number;
|
|
}
|
|
|
|
type ThreadReadChangedData = {
|
|
thread_id: string;
|
|
timestamp: number;
|
|
unread_mentions: number;
|
|
unread_replies: number;
|
|
};
|