recentEmojis property
returns the recently used emojis from the account data
There's no corresponding standard or MSC, it's just the reverse-engineered API from New Vector Ltd.
Implementation
Map<String, int> get recentEmojis {
final recents = <String, int>{};
accountData['io.element.recent_emoji']
?.content
.tryGetList('recent_emoji')
?.forEach((item) {
if (item is List) {
if (item.length > 1 && item[0] is String && item[1] is int) {
recents[item[0]] = item[1];
}
}
});
return recents;
}