Added support for MSC3881

- Update after review
This commit is contained in:
Gil Eluard
2022-10-03 15:33:35 +02:00
parent 966278994e
commit 0e97610b1a
4 changed files with 25 additions and 16 deletions
@@ -52,7 +52,16 @@ class UserSessionOverviewService: UserSessionOverviewServiceProtocol {
let data = pusher.data.jsonDictionary() as? [String: Any] ?? [:]
self.session.matrixRestClient .setPusher(pushKey: pusher.pushkey, kind: MXPusherKind.from(value: pusher.kind), appId: pusher.appId, appDisplayName:pusher.appDisplayName, deviceDisplayName: pusher.deviceDisplayName, profileTag: pusher.profileTag ?? "", lang: pusher.lang, data: data, append: false, enabled: !enabled) { [weak self] response in
self.session.matrixRestClient.setPusher(pushKey: pusher.pushkey,
kind: MXPusherKind(value: pusher.kind),
appId: pusher.appId,
appDisplayName:pusher.appDisplayName,
deviceDisplayName: pusher.deviceDisplayName,
profileTag: pusher.profileTag ?? "",
lang: pusher.lang,
data: data,
append: false,
enabled: !enabled) { [weak self] response in
guard let self = self else { return }
switch response {