diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-26 11:34:20 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-26 11:34:20 +0300 |
commit | a5ec81e6744c8b5ee71aded34d254a2f83176ee0 (patch) | |
tree | 9cd3b9b7583c6857e06cb1b3161543aa92aa1dbc /lib/Notification/Notifier.php | |
parent | 5900f65ac76c767b541a8004ce332028eff71a55 (diff) |
New line as information seperator
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification/Notifier.php')
-rw-r--r-- | lib/Notification/Notifier.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index c3113e413..4f2a26bd9 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -345,17 +345,17 @@ class Notifier implements INotifier { 'name' => $shortenMessage, ]; if ($room->getType() === Room::ONE_TO_ONE_CALL) { - $subject = $l->t('{user}: {message}'); + $subject = "{user}\n{message}"; } elseif ($richSubjectUser) { - $subject = $l->t('{user} in {call}: {message}'); + $subject = $l->t('{user} in {call}') . "\n{message}"; } elseif (!$isGuest) { - $subject = $l->t('Deleted user in {call}: {message}'); + $subject = $l->t('Deleted user in {call}') . "\n{message}"; } else { try { $richSubjectParameters['guest'] = $this->getGuestParameter($comment->getActorId()); - $subject = $l->t('{guest} (guest) in {call}: {message}'); + $subject = $l->t('{guest} (guest) in {call}') . "\n{message}"; } catch (ParticipantNotFoundException $e) { - $subject = $l->t('Guest in {call}: {message}'); + $subject = $l->t('Guest in {call}') . "\n{message}"; } } } elseif ($notification->getSubject() === 'chat') { |