Skip to content

Render custom emoji icons in the completion pane

snow flurry requested to merge flurry/neochat:custom-emoji-completion into master

Querying for the CustomEmojiModel::MxcUrl role returns a URL without the scheme (e.g., "example.org/SEsfnsuifSDFSSEF"). This is parsed by KirigamiComponents.Avatar (in CompletionMenu) as a relative URL, causing the icon to not render. This changes the logic to prepend "mxc://" to the returned URL.

Since the given emoji could also be a Unicode emoji, we need to pass through the "invalid" result from querying for an invalid role.

Merge request reports

Loading