mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 14:54:48 +00:00
chore(chat/stickers): expose loadStickers
to the view
This commit is contained in:
parent
8b4d527651
commit
4917f46785
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user