mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01:00
Remove poll feature flag gates
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user