mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-01 22:01:49 +01:00
Remove backbone as a dependency
Co-authored-by: Yash <yash@signal.org> Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -699,10 +699,6 @@ type ReadableInterface = {
|
||||
|
||||
getAllConversations: () => Array<ConversationType>;
|
||||
getAllConversationIds: () => Array<string>;
|
||||
getAllGroupsInvolvingServiceId: (
|
||||
serviceId: ServiceIdString
|
||||
) => Array<ConversationType>;
|
||||
|
||||
getGroupSendCombinedEndorsementExpiration: (groupId: string) => number | null;
|
||||
getGroupSendEndorsementsData: (
|
||||
groupId: string
|
||||
|
||||
@@ -372,7 +372,6 @@ export const DataReader: ServerReadableInterface = {
|
||||
|
||||
getAllConversations,
|
||||
getAllConversationIds,
|
||||
getAllGroupsInvolvingServiceId,
|
||||
|
||||
getGroupSendCombinedEndorsementExpiration,
|
||||
getGroupSendEndorsementsData,
|
||||
@@ -1945,27 +1944,6 @@ function getAllConversationIds(db: ReadableDB): Array<string> {
|
||||
return rows.map(row => row.id);
|
||||
}
|
||||
|
||||
function getAllGroupsInvolvingServiceId(
|
||||
db: ReadableDB,
|
||||
serviceId: ServiceIdString
|
||||
): Array<ConversationType> {
|
||||
const rows: ConversationRows = db
|
||||
.prepare(
|
||||
`
|
||||
SELECT json, profileLastFetchedAt, expireTimerVersion
|
||||
FROM conversations WHERE
|
||||
type = 'group' AND
|
||||
members LIKE $serviceId
|
||||
ORDER BY id ASC;
|
||||
`
|
||||
)
|
||||
.all({
|
||||
serviceId: `%${serviceId}%`,
|
||||
});
|
||||
|
||||
return rows.map(row => rowToConversation(row));
|
||||
}
|
||||
|
||||
function searchMessages(
|
||||
db: ReadableDB,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user