forked from Ivasoft/mattermost-mobile
[Gekidou] Saves groups + group-channel for constrained channels (#6358)
* Rebases and addresses PR feedback * Rebased and addresses PR feedback * Checks group constraint in action instead * Update method docs, parallel promises * Parallel promises, method docs * Cleans up method docs * Method docs cleanup * Update app/database/operator/server_data_operator/handlers/group.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
12
types/api/groups.d.ts
vendored
12
types/api/groups.d.ts
vendored
@@ -22,19 +22,9 @@ type GroupTeam = {
|
||||
}
|
||||
|
||||
type GroupChannel = {
|
||||
id?: string;
|
||||
channel_id: string;
|
||||
channel_display_name: string;
|
||||
channel_type: string;
|
||||
team_id: string;
|
||||
team_display_name: string;
|
||||
team_type: string;
|
||||
group_id: string;
|
||||
auto_add: boolean;
|
||||
member_count?: number;
|
||||
timezone_count?: number;
|
||||
create_at: number;
|
||||
delete_at: number;
|
||||
update_at: number;
|
||||
}
|
||||
|
||||
type GroupMembership = {
|
||||
|
||||
5
types/database/database.d.ts
vendored
5
types/database/database.d.ts
vendored
@@ -222,6 +222,11 @@ export type HandleGroupArgs = PrepareOnly & {
|
||||
groups?: Group[];
|
||||
};
|
||||
|
||||
export type HandleGroupChannelsForChannelArgs = PrepareOnly & {
|
||||
channelId: string;
|
||||
groups?: Group[];
|
||||
}
|
||||
|
||||
export type HandleGroupMembershipForMemberArgs = PrepareOnly & {
|
||||
userId: string;
|
||||
groups?: Group[];
|
||||
|
||||
Reference in New Issue
Block a user