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:
parent
4fc9793cae
commit
237e239e05
69 changed files with 963 additions and 2110 deletions
|
@ -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,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue