mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
Disable sending polls in threads
This commit is contained in:
@@ -24,21 +24,27 @@ class RoomDisplayConfiguration: NSObject {
|
||||
let integrationsEnabled: Bool
|
||||
|
||||
let jitsiWidgetRemoverEnabled: Bool
|
||||
|
||||
let sendingPollsEnabled: Bool
|
||||
|
||||
init(callsEnabled: Bool,
|
||||
integrationsEnabled: Bool,
|
||||
jitsiWidgetRemoverEnabled: Bool) {
|
||||
jitsiWidgetRemoverEnabled: Bool,
|
||||
sendingPollsEnabled: Bool) {
|
||||
self.callsEnabled = callsEnabled
|
||||
self.integrationsEnabled = integrationsEnabled
|
||||
self.jitsiWidgetRemoverEnabled = jitsiWidgetRemoverEnabled
|
||||
self.sendingPollsEnabled = sendingPollsEnabled
|
||||
super.init()
|
||||
}
|
||||
|
||||
static let `default`: RoomDisplayConfiguration = RoomDisplayConfiguration(callsEnabled: true,
|
||||
integrationsEnabled: true,
|
||||
jitsiWidgetRemoverEnabled: true)
|
||||
jitsiWidgetRemoverEnabled: true,
|
||||
sendingPollsEnabled: true)
|
||||
|
||||
static let forThreads: RoomDisplayConfiguration = RoomDisplayConfiguration(callsEnabled: false,
|
||||
integrationsEnabled: false,
|
||||
jitsiWidgetRemoverEnabled: false)
|
||||
jitsiWidgetRemoverEnabled: false,
|
||||
sendingPollsEnabled: false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user