forked from Ivasoft/mattermost-mobile
[Gekidou HOTFIX] fixes saving threads in the DB (#6132)
* [Gekidou HOTFIX] fixes saving threads in the DB `loadedInGlobalThreads` cannot be a property of the thread, the DB will fail with unknown column upon saving. This commit makes it an argument of handleThreads and handleThreadInTeam. Fixes wrong foreignKey in THREAD table associations. * Fixes errors * Fixes error
This commit is contained in:
2
types/database/database.d.ts
vendored
2
types/database/database.d.ts
vendored
@@ -92,6 +92,7 @@ export type HandleThreadsArgs = {
|
||||
threads: Thread[];
|
||||
prepareRecordsOnly?: boolean;
|
||||
teamId?: string;
|
||||
loadedInGlobalThreads?: boolean;
|
||||
};
|
||||
|
||||
export type HandleThreadParticipantsArgs = {
|
||||
@@ -103,6 +104,7 @@ export type HandleThreadParticipantsArgs = {
|
||||
export type HandleThreadInTeamArgs = {
|
||||
threadsMap: Record<string, Thread[]>;
|
||||
prepareRecordsOnly?: boolean;
|
||||
loadedInGlobalThreads?: boolean;
|
||||
};
|
||||
|
||||
export type SanitizeReactionsArgs = {
|
||||
|
||||
Reference in New Issue
Block a user