@ -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 ? (
return (
<>
@ -48,6 +48,7 @@ declare global {
useFileOnionRequests: boolean;
useFileOnionRequestsV2: boolean;
padOutgoingAttachments: boolean;
enablePinConversations: boolean;
lokiSnodeAPI: LokiSnodeAPI;
onLogin: any;