Remove poll feature flag gates

This commit is contained in:
yash-signal
2026-02-25 18:53:37 -06:00
committed by GitHub
parent b9d7364182
commit ff53e3a156
9 changed files with 8 additions and 170 deletions

View File

@@ -5,7 +5,6 @@ import type { ConversationModel } from '../models/conversations.preload.js';
import { isDirectConversation } from './whatTypeOfConversation.dom.js';
import {
isPollSend1to1Enabled,
isPollSendEnabled,
type PollCreateType,
} from '../types/Polls.dom.js';
@@ -13,10 +12,6 @@ export async function enqueuePollCreateForSend(
conversation: ConversationModel,
poll: PollCreateType
): Promise<void> {
if (!isPollSendEnabled()) {
throw new Error('enqueuePollCreateForSend: poll sending is not enabled');
}
if (
isDirectConversation(conversation.attributes) &&
!isPollSend1to1Enabled()