mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Poll not usable after logging out and back in
This commit is contained in:
@@ -16,13 +16,14 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
class TimelinePollProvider {
|
||||
@objcMembers
|
||||
class TimelinePollProvider: NSObject {
|
||||
static let shared = TimelinePollProvider()
|
||||
|
||||
var session: MXSession?
|
||||
var coordinatorsForEventIdentifiers = [String: TimelinePollCoordinator]()
|
||||
|
||||
private init() { }
|
||||
private override init() { }
|
||||
|
||||
/// Create or retrieve the poll timeline coordinator for this event and return
|
||||
/// a view to be displayed in the timeline
|
||||
@@ -49,4 +50,8 @@ class TimelinePollProvider {
|
||||
func timelinePollCoordinatorForEventIdentifier(_ eventIdentifier: String) -> TimelinePollCoordinator? {
|
||||
coordinatorsForEventIdentifiers[eventIdentifier]
|
||||
}
|
||||
|
||||
func reset() {
|
||||
coordinatorsForEventIdentifiers.removeAll()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user