diff --git a/src/app/components/notification-banner/NotificationBanner.tsx b/src/app/components/notification-banner/NotificationBanner.tsx index 6732a1fe..ad0ba026 100644 --- a/src/app/components/notification-banner/NotificationBanner.tsx +++ b/src/app/components/notification-banner/NotificationBanner.tsx @@ -111,8 +111,7 @@ function BannerItem({ notification, onDismiss }: BannerItemProps) { {' (​'} {notification.roomName && `#${notification.roomName}`} {notification.roomName && notification.serverName && ', '} - {notification.serverName} - {')'} + {notification.serverName}) )} diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index e067c2ce..f3bbfb26 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -293,8 +293,7 @@ function MessageNotifications() { const capturedEventId = eventId; const capturedUserId = mx.getUserId() ?? undefined; const canonicalAlias = room.getCanonicalAlias(); - const serverName = - canonicalAlias?.split(':')[1] ?? room.roomId.split(':')[1] ?? undefined; + const serverName = canonicalAlias?.split(':')[1] ?? room.roomId.split(':')[1] ?? undefined; setInAppBanner({ id: eventId, title: payload.title,