Merge pull request #3217 from alfonso-salces/MOBILE-3833

MOBILE-3833 chat-helper: add white space in message private
main
Dani Palou 2022-03-31 17:38:06 +02:00 committed by GitHub
commit 9917c92e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@ export class AddonModChatHelperProvider {
if (!formattedMessage.special && formattedMessage.message.match(patternTo)) {
const matches = formattedMessage.message.match(patternTo);
formattedMessage.message = '<b>' + Translate.instant('addon.mod_chat.saidto') +
'</b> <i>' + matches![1] + '</i>: ' + matches![2];
formattedMessage.message = `<i><b>${Translate.instant('addon.mod_chat.saidto')} </b>${matches![1]}</i>: ${matches![2]}`;
}
formattedMessage.showUserData = this.showUserData(currentUserId, message, prevMessage);