mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-11-20 14:59:55 +01:00
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';
|
||||
|
||||
function getRecentEmojisRaw() {
|
||||
return initMatrix.matrixClient.getAccountData(eventType).getContent().recent_emoji ?? [];
|
||||
return initMatrix.matrixClient.getAccountData(eventType)?.getContent().recent_emoji ?? [];
|
||||
}
|
||||
|
||||
export function getRecentEmojis(limit) {
|
||||
|
|
Loading…
Reference in a new issue