Fix emoji autocomplete in some cases (#565)
This commit is contained in:
@@ -4,7 +4,7 @@ import { emojis } from './emoji';
|
|||||||
const eventType = 'io.element.recent_emoji';
|
const eventType = 'io.element.recent_emoji';
|
||||||
|
|
||||||
function getRecentEmojisRaw() {
|
function getRecentEmojisRaw() {
|
||||||
return initMatrix.matrixClient.getAccountData(eventType).getContent().recent_emoji ?? [];
|
return initMatrix.matrixClient.getAccountData(eventType)?.getContent().recent_emoji ?? [];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getRecentEmojis(limit) {
|
export function getRecentEmojis(limit) {
|
||||||
|
|||||||
Reference in New Issue
Block a user