feat: complete Ancestor quote bot with production-ready Docker support

This commit is contained in:
unfunny
2026-09-13 14:14:38 -04:00
parent f2016da05a
commit fe7351a7dc
1145 changed files with 30890 additions and 97684 deletions

View File

@@ -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