element-web/src/utils
Milton Moura d240f06810
Include non-matching DMs in Spotlight recent conversations when the DM's userId is part of the search API results (#11374)
* This addresses two issues:

     1. Include non-matching DMs in Spotlight suggestions if the userId of the DM is included in the user directory search results
     2. The user directory search results order is kept when there is no relevant activity between users, instead of sorting by MXID

* Applying feedback from PR:
1. Updated comments
2. Renamed users to userDirectorySearchResults
3. Makes sure linter is happy
2023-08-10 17:27:24 +00:00
..
beacon Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
crypto Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
device Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
dm Improve types (#11239) 2023-07-12 15:56:51 +01:00
event Implement broadcast message preview (#9762) 2022-12-16 11:01:16 +00:00
exportUtils Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
localRoom Conform more of the codebase to strictNullChecks (#10731) 2023-04-28 09:45:36 +01:00
location Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
media Apply prettier formatting 2022-12-12 12:24:14 +01:00
oidc Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +00:00
permalinks Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
pushRules Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
room Don't setup keys on login when encryption is force disabled (#11125) 2023-06-27 09:42:31 +00:00
validate Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
AnimationUtils.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
arrays.ts shieldStatusForRoom: avoid deprecated MatrixClient methods (#10944) 2023-05-19 11:57:45 +01:00
AutoDiscoveryUtils.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
blobs.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
BrowserWorkarounds.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
colour.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
connection.ts Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
createMatrixClient.ts Comply with noImplicitAny (#9940) 2023-02-13 11:39:16 +00:00
createVoiceMessageContent.ts Error handling if broadcast events could not be sent (#9885) 2023-01-17 07:57:59 +00:00
DecryptFile.ts Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
DialogOpener.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
direct-messages.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
DirectoryUtils.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
DMRoomMap.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
EditorStateTransfer.ts Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
enums.ts Add enum utility tests 2021-04-22 20:37:19 -06:00
ErrorUtils.tsx Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
EventRenderingUtils.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
EventUtils.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
Feedback.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
FileDownloader.ts Conform src/components/views/messages/* code to strictNullChecks (#10461) 2023-03-29 08:22:35 +01:00
FileUtils.ts fix file size display from kB to KB (#10561) 2023-04-11 14:48:41 +01:00
FixedRollingArray.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
FontManager.ts Conform more code to strict null checking (#10153) 2023-02-15 13:36:22 +00:00
FormattingUtils.ts Change formatCount impl to use Intl.NumberFormat (#11379) 2023-08-08 11:45:20 +00:00
humanize.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
i18n-helpers.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
IdentityServerUtils.ts Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
IDestroyable.ts
image-media.ts Populate info.duration for audio & video file uploads (#11225) 2023-07-17 12:07:58 +00:00
Image.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
iterables.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
JSON.ts Fix view source and devtools showing hljs warnings (#7759) 2022-02-09 09:09:06 +00:00
KeyVerificationStateObserver.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
LazyValue.ts Improve quality of Typescript types (#10742) 2023-05-05 09:11:14 +01:00
leave-behaviour.ts Switch to importing models/{event-timeline{,set},user,device,event-status} from main js-sdk export (#11368) 2023-08-08 07:16:04 +00:00
local-room.ts Apply strictNullChecks to src/utils/local-room.ts (#10915) 2023-06-01 11:55:26 +00:00
login.ts Conform more code to strict null checking (#10167) 2023-02-16 17:21:44 +00:00
LruCache.ts Add UserProfilesStore, LruCache and cache for user permalink profiles (#10425) 2023-03-27 10:07:43 +02:00
maps.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
MarkedExecution.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
MatrixGlob.ts Enable @typescript-eslint/explicit-member-accessibility on /src (#9785) 2022-12-16 12:29:59 +00:00
MediaEventHelper.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
MegolmExportEncryption.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
membership.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
MessageDiffUtils.tsx Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
Mouse.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
MultiInviter.ts Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
NativeEventUtils.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
notifications.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
numbers.ts Fix seekbar position for zero length audio (#9949) 2023-01-23 17:28:31 +01:00
objects.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
pages.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
PasswordScorer.ts Consider more user inputs when calculating zxcvbn score (#11180) 2023-07-05 09:36:30 +00:00
pillify.tsx Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
PinningUtils.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
PreferredRoomVersions.ts Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
presence.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
promise.ts Conform more of the codebase to strictNullChecks (#11134) 2023-06-27 17:39:56 +01:00
ReactUtils.tsx Comply with noImplicitAny (#9940) 2023-02-13 11:39:16 +00:00
read-receipts.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
Reply.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
ResizeNotifier.ts Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
rooms.ts Don't setup keys on login when encryption is force disabled (#11125) 2023-06-27 09:42:31 +00:00
RoomUpgrade.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
SearchInput.ts Allows search to recognize full room links (#8275) 2023-05-09 07:55:50 +00:00
sets.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
ShieldUtils.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
Singleflight.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
SnakedObject.ts Avoid warning about config.json fallback keys more than once (#11307) 2023-07-24 07:36:51 +00:00
SortMembers.ts Include non-matching DMs in Spotlight recent conversations when the DM's userId is part of the search API results (#11374) 2023-08-10 17:27:24 +00:00
space.tsx Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
StorageManager.ts Conform more of the codebase to strictNullChecks (#11134) 2023-06-27 17:39:56 +01:00
stringOrderField.ts Apply strictNullChecks to src/utils/*!exportUtils (#10455 2023-04-03 09:26:55 +01:00
strings.ts Switch from grapheme-splitter to graphemer (#11037) 2023-06-05 14:39:46 +00:00
threepids.ts Apply strictNullChecks to src/utils/*!exportUtils (#10455 2023-04-03 09:26:55 +01:00
Timer.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
tooltipify.tsx Improve typescript null checking in places (#10073 (#10073 2023-02-03 15:27:47 +00:00
units.ts Remove dead code (#9035) 2022-07-11 07:52:44 +02:00
UrlUtils.ts Handle all permitted url schemes in linkify (#11215) 2023-07-10 15:09:39 +00:00
UserInteractiveAuth.ts Conform more of the codebase to strict types (#11191) 2023-07-05 11:53:22 +01:00
useTooltip.tsx Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
ValidatedServerConfig.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
video-rooms.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
WellKnownUtils.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
Whenable.ts Add @typescript-eslint/no-base-to-string (#10091) 2023-02-07 10:08:10 +00:00
WidgetUtils.ts Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00