diff --git a/app/sql.js b/app/sql.js index 4a246d3c7..5b95a6c64 100644 --- a/app/sql.js +++ b/app/sql.js @@ -110,7 +110,6 @@ module.exports = { getPublicConversationsByServer, getPubkeysInPublicConversation, getAllConversationIds, - getAllPrivateConversations, getAllGroupsInvolvingId, removeAllConversations, removeAllPrivateConversations, @@ -1948,16 +1947,6 @@ async function getAllConversationIds() { return map(rows, row => row.id); } -async function getAllPrivateConversations() { - const rows = await db.all( - `SELECT json FROM ${CONVERSATIONS_TABLE} WHERE - type = 'private' - ORDER BY id ASC;` - ); - - return map(rows, row => jsonToObject(row.json)); -} - async function getAllPublicConversations() { const rows = await db.all( `SELECT json FROM conversations WHERE diff --git a/js/modules/data.d.ts b/js/modules/data.d.ts index 17ac87ebc..0f70dd4da 100644 --- a/js/modules/data.d.ts +++ b/js/modules/data.d.ts @@ -197,7 +197,6 @@ export function getAllConversations({ }): Promise>; export function getAllConversationIds(): Promise>; -export function getAllPrivateConversations(): Promise>; export function getAllPublicConversations(): Promise>; export function getPublicConversationsByServer( server: string, diff --git a/js/modules/data.js b/js/modules/data.js index 6de00db8c..35417200a 100644 --- a/js/modules/data.js +++ b/js/modules/data.js @@ -123,7 +123,6 @@ module.exports = { getAllConversations, getAllConversationIds, - getAllPrivateConversations, getAllPublicConversations, getPublicConversationsByServer, getPubkeysInPublicConversation, @@ -819,14 +818,6 @@ async function getAllPublicConversations({ ConversationCollection }) { return collection; } -async function getAllPrivateConversations({ ConversationCollection }) { - const conversations = await channels.getAllPrivateConversations(); - - const collection = new ConversationCollection(); - collection.add(conversations); - return collection; -} - async function getPubkeysInPublicConversation(id) { return channels.getPubkeysInPublicConversation(id); }