mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
-reload gifts
This commit is contained in:
parent
a8fd8c6085
commit
4e287679b7
@ -939,6 +939,12 @@ private final class ProfileGiftsContextImpl {
|
||||
self.actionDisposable.dispose()
|
||||
}
|
||||
|
||||
func reload() {
|
||||
gifts = []
|
||||
dataState = .ready(canLoadMore: true, nextOffset: nil)
|
||||
self.loadMore()
|
||||
}
|
||||
|
||||
func loadMore() {
|
||||
let peerId = self.peerId
|
||||
let accountPeerId = self.account.peerId
|
||||
@ -1278,6 +1284,12 @@ public final class ProfileGiftsContext {
|
||||
}
|
||||
}
|
||||
|
||||
public func reload() {
|
||||
self.impl.with { impl in
|
||||
impl.reload()
|
||||
}
|
||||
}
|
||||
|
||||
public func updateStarGiftAddedToProfile(reference: StarGiftReference, added: Bool) {
|
||||
self.impl.with { impl in
|
||||
impl.updateStarGiftAddedToProfile(reference: reference, added: added)
|
||||
|
Loading…
x
Reference in New Issue
Block a user