Cleanup RemoteConfig

This commit is contained in:
Fedor Indutny 2023-12-08 00:59:54 +01:00 committed by GitHub
parent 7bad05f5a0
commit b2a3605d77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 121 additions and 614 deletions

View file

@ -97,9 +97,6 @@ export function getConversation(model: ConversationModel): ConversationType {
hasDraft(attributes) && draftTimestamp && draftTimestamp >= (timestamp || 0)
);
const inboxPosition = attributes.inbox_position;
const messageRequestsEnabled = window.Signal.RemoteConfig.isEnabled(
'desktop.messageRequests'
);
const ourConversationId =
window.ConversationController.getOurConversationId();
@ -198,7 +195,6 @@ export function getConversation(model: ConversationModel): ConversationType {
pendingApprovalMemberships: getPendingApprovalMemberships(attributes),
bannedMemberships: getBannedMemberships(attributes),
profileKey: attributes.profileKey,
messageRequestsEnabled,
accessControlAddFromInviteLink: attributes.accessControl?.addFromInviteLink,
accessControlAttributes: attributes.accessControl?.attributes,
accessControlMembers: attributes.accessControl?.members,