4216d63311
Ability to choose a specific tweet to reply to Fixes #982 Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
import MessageFormatter from '../helpers/MessageFormatter';
|
|
|
|
export default {
|
|
methods: {
|
|
formatMessage(message, isATweet) {
|
|
const messageFormatter = new MessageFormatter(message, isATweet);
|
|
return messageFormatter.formattedMessage;
|
|
},
|
|
truncateMessage(description = '') {
|
|
if (description.length < 100) {
|
|
return description;
|
|
}
|
|
|
|
return `${description.slice(0, 97)}...`;
|
|
},
|
|
},
|
|
};
|