mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix widget data peer removal
This commit is contained in:
parent
f8e7a31bf6
commit
38f20d4aa5
@ -232,7 +232,12 @@ public func widgetSetupScreen(context: AccountContext) -> ViewController {
|
|||||||
return state
|
return state
|
||||||
}
|
}
|
||||||
}, removePeer: { memberId in
|
}, removePeer: { memberId in
|
||||||
|
let _ = (updateWidgetSettingsInteractively(postbox: context.account.postbox, { settings in
|
||||||
|
var settings = settings
|
||||||
|
settings.peers.removeAll(where: { $0 == memberId })
|
||||||
|
return settings
|
||||||
|
})
|
||||||
|
|> deliverOnMainQueue).start()
|
||||||
}, addPeer: {
|
}, addPeer: {
|
||||||
let controller = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, mode: .peerSelection(searchChatList: true, searchGroups: true, searchChannels: false), options: []))
|
let controller = context.sharedContext.makeContactMultiselectionController(ContactMultiselectionControllerParams(context: context, mode: .peerSelection(searchChatList: true, searchGroups: true, searchChannels: false), options: []))
|
||||||
addPeerDisposable.set((controller.result
|
addPeerDisposable.set((controller.result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user