mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Implement frequency tracking for frequently used emojis
This commit is contained in:
committed by
Stefan Ceriu
parent
e04c87445e
commit
60e94120cc
@@ -31,6 +31,15 @@ enum EmojiProviderState {
|
||||
case loaded([EmojiCategory])
|
||||
}
|
||||
|
||||
struct FrequentlyUsedEmoji: Codable, Hashable {
|
||||
let count: UInt
|
||||
let key: String
|
||||
|
||||
static func == (lhs: FrequentlyUsedEmoji, rhs: FrequentlyUsedEmoji) -> Bool {
|
||||
lhs.key == rhs.key
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
protocol EmojiProviderProtocol {
|
||||
var state: EmojiProviderState { get }
|
||||
|
||||
Reference in New Issue
Block a user