22 lines
511 B
Swift
22 lines
511 B
Swift
//
|
|
// Copyright 2024 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension AttachmentStream {
|
|
|
|
public func asStickerMetadata(
|
|
stickerInfo: StickerInfo,
|
|
stickerType: StickerType,
|
|
emojiString: String?
|
|
) -> (any StickerMetadata)? {
|
|
return EncryptedStickerMetadata.from(
|
|
attachment: self,
|
|
stickerInfo: stickerInfo,
|
|
stickerType: stickerType,
|
|
emojiString: emojiString
|
|
)
|
|
}
|
|
}
|