remade the imessageextension

updated recticon
This commit is contained in:
neon443 committed 2025-11-01 15:08:57 +00:00
1 parent 64771a32e7
commit f572d0f293
24 files changed
+148 -306

No files matched your search

@@ -0,0 +1,28 @@
//
// StickerBrowserDataSource.swift
// StickerSlackiMessageExtension
//
// Created by neon443 on 29/10/2025.
//
import Foundation
import Messages
class StickerBrowserDataSource: NSObject, MSStickerBrowserViewDataSource {
var hoarder: EmojiHoarder = EmojiHoarder(localOnly: true)
var emojis: [MSSticker] = []
func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int {
guard emojis.isEmpty else { return emojis.count }
for emoji in hoarder.emojis {
guard let sticker = emoji.sticker else { continue }
emojis.append(sticker)
}
return emojis.count
}
func stickerBrowserView(_ stickerBrowserView: MSStickerBrowserView, stickerAt index: Int) -> MSSticker {
return emojis[index]
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.