fix: Fix agent name in Twitter channel private note acting as a link (#4326)

This commit is contained in:
Sivin Varghese
2022-03-31 20:22:52 +05:30
committed by GitHub
parent eff3a50316
commit 3cd1616df6
4 changed files with 42 additions and 7 deletions

View File

@@ -3,8 +3,12 @@ import DOMPurify from 'dompurify';
export default {
methods: {
formatMessage(message, isATweet) {
const messageFormatter = new MessageFormatter(message, isATweet);
formatMessage(message, isATweet, isAPrivateNote) {
const messageFormatter = new MessageFormatter(
message,
isATweet,
isAPrivateNote
);
return messageFormatter.formattedMessage;
},
getPlainText(message, isATweet) {