forked from Ivasoft/mattermost-mobile
[Gekidou MM-41093] CRT - WS Events, Actions, Queries, Thread Follow, Post Query (#6075)
* 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
This commit is contained in:
committed by
GitHub
parent
d1322e84ce
commit
8d6fc41dd5
2
types/api/channels.d.ts
vendored
2
types/api/channels.d.ts
vendored
@@ -55,7 +55,9 @@ type ChannelMembership = {
|
||||
roles: string;
|
||||
last_viewed_at: number;
|
||||
msg_count: number;
|
||||
msg_count_root?: number;
|
||||
mention_count: number;
|
||||
mention_count_root?: number;
|
||||
notify_props: Partial<ChannelNotifyProps>;
|
||||
last_post_at?: number;
|
||||
last_update_at: number;
|
||||
|
||||
7
types/api/threads.d.ts
vendored
7
types/api/threads.d.ts
vendored
@@ -18,3 +18,10 @@ type ThreadParticipant = {
|
||||
id: $ID<User>;
|
||||
thread_id: $ID<Thread>;
|
||||
};
|
||||
|
||||
type GetUserThreadsResponse = {
|
||||
threads: Thread[];
|
||||
total: number;
|
||||
total_unread_mentions: number;
|
||||
total_unread_threads: number;
|
||||
};
|
||||
|
||||
7
types/api/websocket.d.ts
vendored
7
types/api/websocket.d.ts
vendored
@@ -14,3 +14,10 @@ type WebSocketMessage = {
|
||||
broadcast: WebsocketBroadcast;
|
||||
seq: number;
|
||||
}
|
||||
|
||||
type ThreadReadChangedData = {
|
||||
thread_id: string;
|
||||
timestamp: number;
|
||||
unread_mentions: number;
|
||||
unread_replies: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user