fix getReplyId

matrix-chat-native
adb 4 years ago
parent d66f2c990e
commit 8dd34b58ee

@ -33,7 +33,8 @@ export default {
}, },
getReplyId(content){ getReplyId(content){
if(!content['m.relates_to']) return undefined; if(!content['m.relates_to']) return undefined;
return content['m.relates_to']['m.in_reply_to'].event_id || undefined; if(!content['m.relates_to']['m.in_reply_to']) return undefined;
return content['m.relates_to']['m.in_reply_to'].event_id;
}, },
calcUserName, calcUserName,
parseMessage parseMessage

Loading…
Cancel
Save