Fix emoji autocomplete in some cases (#565)

This commit is contained in:
Ajay Bura 2022-05-29 09:36:46 +05:30
parent fa6c865000
commit d3431a5d53

View file

@ -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) {