use textSerialize function to get model text
This commit is contained in:
parent
200c061968
commit
27a853c586
1 changed files with 1 additions and 2 deletions
|
@ -94,8 +94,7 @@ export function createMessageContent(model, permalinkCreator, replyToEvent) {
|
||||||
export function isQuickReaction(model) {
|
export function isQuickReaction(model) {
|
||||||
const parts = model.parts;
|
const parts = model.parts;
|
||||||
if (parts.length == 0) return false;
|
if (parts.length == 0) return false;
|
||||||
let text = parts[0].text;
|
const text = textSerialize(model);
|
||||||
text += parts[1] ? parts[1].text : "";
|
|
||||||
// shortcut takes the form "+:emoji:" or "+ :emoji:""
|
// shortcut takes the form "+:emoji:" or "+ :emoji:""
|
||||||
// can be in 1 or 2 parts
|
// can be in 1 or 2 parts
|
||||||
if (parts.length <= 2) {
|
if (parts.length <= 2) {
|
||||||
|
|
Loading…
Reference in a new issue