more logic for getting conversation if it's not there but should be

This commit is contained in:
talksik
2022-06-11 12:40:17 -05:00
parent 298a989cd9
commit 10ac1626ab
5 changed files with 80 additions and 16 deletions
+10 -8
View File
@@ -2,15 +2,17 @@ import { ContentBlock } from '@nirvana/core/models/content.model';
import Conversation from '@nirvana/core/models/conversation.model';
import User from '@nirvana/core/models/user.model';
export type ConversationMap = {
[conversationId: string]: Conversation & {
tunedInUsers: string[];
connectedUserIds: string[];
export type MasterConversation = Conversation & {
tunedInUsers: string[];
connectedUserIds: string[];
// allows client side to have this pushed up in the list and can uncheck it once user is done with this
// if action is take, normal ordering should take place with database upserts
temporaryOverrideSort?: boolean;
};
// allows client side to have this pushed up in the list and can uncheck it once user is done with this
// if action is take, normal ordering should take place with database upserts
temporaryOverrideSort?: boolean;
};
export type ConversationMap = {
[conversationId: string]: MasterConversation;
};
export type UserMap = {