Implement auth session secret chats settings

This commit is contained in:
Ilya Laktyushin
2021-11-16 17:45:45 +04:00
parent 99ec8e3080
commit 31cfdb9a4d
5 changed files with 132 additions and 34 deletions

View File

@@ -144,7 +144,7 @@ private final class ActiveSessionsContextImpl {
}
}
public func updateAuthorizationTTL(days: Int32) -> Signal<Never, UpadteAuthorizationTTLError> {
func updateAuthorizationTTL(days: Int32) -> Signal<Never, UpadteAuthorizationTTLError> {
self._state = ActiveSessionsContextState(isLoadingMore: self._state.isLoadingMore, sessions: self._state.sessions, ttlDays: days)
return setAuthorizationTTL(account: self.account, ttl: days)
@@ -219,7 +219,7 @@ public final class ActiveSessionsContext {
}
}
func updateSessionAcceptsSecretChats(_ session: RecentAccountSession, accepts: Bool) -> Signal<Never, UpdateSessionError> {
public func updateSessionAcceptsSecretChats(_ session: RecentAccountSession, accepts: Bool) -> Signal<Never, UpdateSessionError> {
return Signal { subscriber in
let disposable = MetaDisposable()
self.impl.with { impl in