mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
add feature flag
This commit is contained in:
parent
03891a9438
commit
ff7f201e04
|
@ -56,6 +56,7 @@ window.lokiFeatureFlags = {
|
|||
useFileOnionRequests: true,
|
||||
useFileOnionRequestsV2: true, // more compact encoding of files in response
|
||||
padOutgoingAttachments: true,
|
||||
enablePinConversations: false,
|
||||
};
|
||||
|
||||
if (typeof process.env.NODE_ENV === 'string' && process.env.NODE_ENV.includes('test-integration')) {
|
||||
|
|
|
@ -46,9 +46,10 @@ export const ConversationListItemContextMenu = (props: PropsContextConversationI
|
|||
|
||||
const isGroup = type === 'group';
|
||||
const isMessagesSection = useSelector(getFocusedSection) === SectionType.Message;
|
||||
const pinMenuItem = isMessagesSection ? (
|
||||
<MenuItemPinConversation conversationId={conversationId} />
|
||||
) : null;
|
||||
const pinMenuItem =
|
||||
isMessagesSection && window.lokiFeatureFlags.enablePinConversations ? (
|
||||
<MenuItemPinConversation conversationId={conversationId} />
|
||||
) : null;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
1
ts/window.d.ts
vendored
1
ts/window.d.ts
vendored
|
@ -48,6 +48,7 @@ declare global {
|
|||
useFileOnionRequests: boolean;
|
||||
useFileOnionRequestsV2: boolean;
|
||||
padOutgoingAttachments: boolean;
|
||||
enablePinConversations: boolean;
|
||||
};
|
||||
lokiSnodeAPI: LokiSnodeAPI;
|
||||
onLogin: any;
|
||||
|
|
Loading…
Reference in a new issue