From 9504846172612b66741feeae89b093370e7eb313 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 11 Jun 2022 11:10:45 -0500 Subject: [PATCH] quick tip for sorting with temporary top in inbox --- packages/desktop/src/util/types.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/desktop/src/util/types.ts b/packages/desktop/src/util/types.ts index baf83ad..97922da 100644 --- a/packages/desktop/src/util/types.ts +++ b/packages/desktop/src/util/types.ts @@ -3,7 +3,14 @@ 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[] }; + [conversationId: string]: 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 + temporaryInboxTop: boolean; + }; }; export type UserMap = {