feat: complete Ancestor quote bot with production-ready Docker support
This commit is contained in:
13
node_modules/matrix-js-sdk/lib/models/search-result.js
generated
vendored
13
node_modules/matrix-js-sdk/lib/models/search-result.js
generated
vendored
@@ -1,3 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.SearchResult = void 0;
|
||||
var _eventContext = require("./event-context");
|
||||
/*
|
||||
Copyright 2015 - 2021 The Matrix.org Foundation C.I.C.
|
||||
|
||||
@@ -14,8 +21,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { EventContext } from "./event-context.js";
|
||||
export class SearchResult {
|
||||
class SearchResult {
|
||||
/**
|
||||
* Create a SearchResponse from the response to /search
|
||||
*/
|
||||
@@ -24,7 +30,7 @@ export class SearchResult {
|
||||
const jsonContext = jsonObj.context || {};
|
||||
let eventsBefore = (jsonContext.events_before || []).map(eventMapper);
|
||||
let eventsAfter = (jsonContext.events_after || []).map(eventMapper);
|
||||
const context = new EventContext(eventMapper(jsonObj.result));
|
||||
const context = new _eventContext.EventContext(eventMapper(jsonObj.result));
|
||||
|
||||
// Filter out any contextual events which do not correspond to the same timeline (thread or room)
|
||||
const threadRootId = context.ourEvent.threadRootId;
|
||||
@@ -49,4 +55,5 @@ export class SearchResult {
|
||||
this.context = context;
|
||||
}
|
||||
}
|
||||
exports.SearchResult = SearchResult;
|
||||
//# sourceMappingURL=search-result.js.map
|
||||
Reference in New Issue
Block a user