fixes for uid/note display in notifs

This commit is contained in:
rootdarkarchon
2023-01-31 14:54:13 +01:00
parent 44a72dff1b
commit 68ae87878a
2 changed files with 2 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ public class PairManager : IDisposable
|| !_configurationService.Current.ShowOnlineNotificationsOnlyForNamedPairs))
{
string note = pair.GetNote();
var msg = string.IsNullOrEmpty(note)
var msg = !string.IsNullOrEmpty(note)
? $"{note} ({pair.UserData.AliasOrUID}) is now online"
: $"{pair.UserData.AliasOrUID} is now online";
_mediator.Publish(new NotificationMessage("User online", msg, NotificationType.Info, 5000));