mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Remove unused getAllPrivateConversations SQL function
This commit is contained in:
@@ -201,7 +201,6 @@ const dataInterface: ServerInterface = {
|
||||
|
||||
getAllConversations,
|
||||
getAllConversationIds,
|
||||
getAllPrivateConversations,
|
||||
getAllGroupsInvolvingUuid,
|
||||
|
||||
searchConversations,
|
||||
@@ -1491,22 +1490,6 @@ async function getAllConversationIds(): Promise<Array<string>> {
|
||||
return rows.map(row => row.id);
|
||||
}
|
||||
|
||||
async function getAllPrivateConversations(): Promise<Array<ConversationType>> {
|
||||
const db = getInstance();
|
||||
const rows: ConversationRows = db
|
||||
.prepare<EmptyQuery>(
|
||||
`
|
||||
SELECT json, profileLastFetchedAt
|
||||
FROM conversations
|
||||
WHERE type = 'private'
|
||||
ORDER BY id ASC;
|
||||
`
|
||||
)
|
||||
.all();
|
||||
|
||||
return rows.map(row => rowToConversation(row));
|
||||
}
|
||||
|
||||
async function getAllGroupsInvolvingUuid(
|
||||
uuid: UUIDStringType
|
||||
): Promise<Array<ConversationType>> {
|
||||
|
||||
Reference in New Issue
Block a user