Early preparations for PNP Contact Merging
This commit is contained in:
@@ -207,6 +207,7 @@ const dataInterface: ServerInterface = {
|
||||
updateConversation,
|
||||
updateConversations,
|
||||
removeConversation,
|
||||
_removeAllConversations,
|
||||
updateAllConversationColors,
|
||||
removeAllProfileKeyCredentials,
|
||||
|
||||
@@ -1478,6 +1479,11 @@ async function removeConversation(id: Array<string> | string): Promise<void> {
|
||||
batchMultiVarQuery(db, id, removeConversationsSync);
|
||||
}
|
||||
|
||||
async function _removeAllConversations(): Promise<void> {
|
||||
const db = getInstance();
|
||||
db.prepare<EmptyQuery>('DELETE from conversations;').run();
|
||||
}
|
||||
|
||||
async function getConversationById(
|
||||
id: string
|
||||
): Promise<ConversationType | undefined> {
|
||||
|
Reference in New Issue
Block a user