RecentEmojiExtension extension
Syncs recent emojis in account data
Keeps recently used emojis stored in account data by
{ // the account data
"io.element.recent_emoji": {
"recent_emoji" : {
"emoji character": n, // number used
}
}
}
Proprietary extension by New Vector Ltd.
- on
Properties
-
recentEmojis
→ Map<
String, int> -
returns the recently used emojis from the account data
no setter
Methods
-
addRecentEmoji(
String emoji) → Future< void> - +1 the stated emoji in the account data
-
setRecentEmojiData(
Map< String, int> data) → Future<void> - sets the raw recent emoji account data. Use addRecentEmoji instead