From d3431a5d53ff0bf765edd412fd88154786a8219b Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Sun, 29 May 2022 09:36:46 +0530 Subject: [PATCH] Fix emoji autocomplete in some cases (#565) --- src/app/organisms/emoji-board/recent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/organisms/emoji-board/recent.js b/src/app/organisms/emoji-board/recent.js index d175f26..dff67fb 100644 --- a/src/app/organisms/emoji-board/recent.js +++ b/src/app/organisms/emoji-board/recent.js @@ -4,7 +4,7 @@ import { emojis } from './emoji'; const eventType = 'io.element.recent_emoji'; function getRecentEmojisRaw() { - return initMatrix.matrixClient.getAccountData(eventType).getContent().recent_emoji ?? []; + return initMatrix.matrixClient.getAccountData(eventType)?.getContent().recent_emoji ?? []; } export function getRecentEmojis(limit) {