better truncate message in notification - closes #9887
parent
5e318de0cf
commit
0247686705
|
@ -80,7 +80,7 @@ final private class MsgNotify(
|
|||
Notification.Notifies(dest),
|
||||
PrivateMessage(
|
||||
PrivateMessage.Sender(msg.user),
|
||||
PrivateMessage.Text(shorten(msg.text, 80))
|
||||
PrivateMessage.Text(shorten(msg.text, 40))
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
@ -89,9 +89,7 @@ final class NotifyApi(
|
|||
}
|
||||
|
||||
/** Inserts notification into the repository.
|
||||
*
|
||||
* If the user already has an unread notification on the topic, discard it.
|
||||
*
|
||||
* If the user does not already have an unread notification on the topic, returns it unmodified.
|
||||
*/
|
||||
private def insertOrDiscardNotification(notification: Notification): Fu[Option[Notification]] =
|
||||
|
|
Loading…
Reference in New Issue