@@ -34,7 +34,6 @@ import { IDialogProps } from "./IDialogProps";
3434import { _t } from "../../../languageHandler" ;
3535import BaseDialog from "./BaseDialog" ;
3636import { BreadcrumbsStore } from "../../../stores/BreadcrumbsStore" ;
37- import RoomAvatar from "../avatars/RoomAvatar" ;
3837import defaultDispatcher from "../../../dispatcher/dispatcher" ;
3938import {
4039 findSiblingElement ,
@@ -63,6 +62,8 @@ import RoomViewStore from "../../../stores/RoomViewStore";
6362import { showStartChatInviteDialog } from "../../../RoomInvite" ;
6463import SettingsStore from "../../../settings/SettingsStore" ;
6564import { SettingLevel } from "../../../settings/SettingLevel" ;
65+ import NotificationBadge from "../rooms/NotificationBadge" ;
66+ import { RoomNotificationStateStore } from "../../../stores/notifications/RoomNotificationStateStore" ;
6667
6768const MAX_RECENT_SEARCHES = 10 ;
6869const SECTION_LIMIT = 50 ; // only show 50 results per section for performance reasons
@@ -244,8 +245,9 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", onFinished }) =>
244245 viewRoom ( room . roomId , true ) ;
245246 } }
246247 >
247- < RoomAvatar room = { room } width = { 20 } height = { 20 } />
248+ < DecoratedRoomAvatar room = { room } avatarSize = { 20 } />
248249 { room . name }
250+ < NotificationBadge notification = { RoomNotificationStateStore . instance . getRoomState ( room ) } />
249251 < ResultDetails room = { room } />
250252 < div className = "mx_SpotlightDialog_enterPrompt" > ↵</ div >
251253 </ Option >
@@ -383,8 +385,9 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", onFinished }) =>
383385 viewRoom ( room . roomId , true ) ;
384386 } }
385387 >
386- < RoomAvatar room = { room } width = { 20 } height = { 20 } />
388+ < DecoratedRoomAvatar room = { room } avatarSize = { 20 } />
387389 { room . name }
390+ < NotificationBadge notification = { RoomNotificationStateStore . instance . getRoomState ( room ) } />
388391 < div className = "mx_SpotlightDialog_enterPrompt" > ↵</ div >
389392 </ Option >
390393 ) ) }
0 commit comments