mixin renderSticker (sticker, options = { }) if sticker && sticker.encoded div( title= `:${sticker.slug}:`, data-sticker-id= sticker._id, data-sticker-slug= sticker.slug, onclick= 'return dtp.app.showStickerMenu(event);', ).chat-sticker.uk-text-center case sticker.encoded.type when 'video/mp4' video(playsinline, autoplay, muted, loop) source(src=`/sticker/${sticker._id}/media`) when 'image/png' img(src=`/sticker/${sticker._id}/media`) when 'image/jpg' img(src=`/sticker/${sticker._id}/media`) if !options.hideSlug .uk-text-small.uk-text-muted :#{sticker.slug}: