Fix emoji autocomplete in some cases (#565)
This commit is contained in:
parent
fa6c865000
commit
d3431a5d53
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue