The Great Giphy Purge

This commit is contained in:
Nihaal Sharma committed 2026-08-01 00:35:35 +05:30
1 parent 7a4a83ace8
commit 944149f333
11 files changed
+138 -325

No files matched your search

+2 -15
View File
@@ -10,13 +10,7 @@ import Messages
extension StickerProtocol {
var localImageURLString: String {
let containerPath: String
switch type {
case .slackEmoji:
containerPath = EmojiHoarder.container.safePath
case .giphyGifs:
containerPath = GifHoarder.container.safePath
}
let containerPath = EmojiHoarder.container.safePath
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
let fileExtension = ".\(split.last!)"
@@ -69,14 +63,7 @@ extension StickerProtocol {
}
nonisolated var type: StickerType {
let typeOfSelf = Swift.type(of: self)
if typeOfSelf == Emoji.self {
return .slackEmoji
} else if typeOfSelf == Gif.self {
return .giphyGifs
} else {
fatalError("unrecognised sticker type get crashed lmfao")
}
return .slackEmoji
}
nonisolated func downloadImage() async throws {
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.