mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Widgets: Check user permission before opening a widget (data part)
#2833
This commit is contained in:
@@ -20,10 +20,14 @@ import Foundation
|
||||
/// https://github.com/vector-im/riot-meta/blob/master/spec/settings.md#tracking-which-widgets-the-user-has-allowed-to-load
|
||||
struct RiotSettingAllowedWidgets {
|
||||
let widgets: [String: Bool]
|
||||
|
||||
// Widget type -> Server domain -> Bool
|
||||
let nativeWidgets: [String: [String: Bool]]
|
||||
}
|
||||
|
||||
extension RiotSettingAllowedWidgets: Decodable {
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case widgets
|
||||
case nativeWidgets = "native_widgets"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user