chore(chat/stickers): expose `loadStickers` to the view

This commit is contained in:
Patryk Osmaczko 2022-11-23 14:37:56 +01:00 committed by osmaczko
parent 8b4d527651
commit 4917f46785
1 changed files with 8 additions and 0 deletions

View File

@ -130,6 +130,14 @@ QtObject:
read = getPacksLoadFailed read = getPacksLoadFailed
notify = packsLoadFailedChanged notify = packsLoadFailedChanged
proc loadStickers(self: View) {.slot.} =
self.packsLoaded = false
self.packsLoadFailed = false
self.stickerPacksLoaded()
self.packsLoadFailedChanged()
self.delegate.obtainMarketStickerPacks()
proc send*(self: View, channelId: string, hash: string, replyTo: string, pack: string, url: string) {.slot.} = proc send*(self: View, channelId: string, hash: string, replyTo: string, pack: string, url: string) {.slot.} =
let sticker = initItem(hash, pack, url) let sticker = initItem(hash, pack, url)
self.addRecentStickerToList(sticker) self.addRecentStickerToList(sticker)