mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Searching: Better wording for what's going on in combineEvents().
This commit is contained in:
parent
4c361bfeb7
commit
67cad2807b
@ -247,10 +247,10 @@ function combineEventSources(previousSearchResult, response, a, b) {
|
|||||||
* need keep on looking for the oldest event. We are implementing a variation of
|
* need keep on looking for the oldest event. We are implementing a variation of
|
||||||
* a sliding window.
|
* a sliding window.
|
||||||
*
|
*
|
||||||
* The event sources are here represented as two sorted lists where the lowest
|
* The event sources are here represented as two sorted lists where the smallest
|
||||||
* number represents the newest event. The two sorted lists need to be merged
|
* number represents the newest event. The two lists need to be merged in a way
|
||||||
* so they can be shown as one search result. We first fetch SEARCH_LIMIT events
|
* that preserves the sorted property so they can be shown as one search result.
|
||||||
* from both sources.
|
* We first fetch SEARCH_LIMIT events from both sources.
|
||||||
*
|
*
|
||||||
* If we set SEARCH_LIMIT to 3:
|
* If we set SEARCH_LIMIT to 3:
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user