setRecentEmojiData method

Future<void> setRecentEmojiData(
  1. Map<String, int> data
)

sets the raw recent emoji account data. Use addRecentEmoji instead

Implementation

Future<void> setRecentEmojiData(Map<String, int> data) async {
  if (userID == null) return;
  final content = List.from(data.entries.map((e) => [e.key, e.value]));
  return setAccountData(
      userID!, 'io.element.recent_emoji', {'recent_emoji': content});
}