summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-js-sdk/lib/models/room-summary.js.map
blob: a334eb11ca8dca84f822709eace5d1cbef6a56d8 (plain)
1
{"version":3,"file":"room-summary.js","names":["RoomSummary","constructor","roomId","info","exports"],"sources":["../../src/models/room-summary.ts"],"sourcesContent":["/*\nCopyright 2015 - 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport interface IRoomSummary {\n    \"m.heroes\": string[];\n    \"m.joined_member_count\"?: number;\n    \"m.invited_member_count\"?: number;\n}\n\ninterface IInfo {\n    /** The title of the room (e.g. `m.room.name`) */\n    title: string;\n    /** The description of the room (e.g. `m.room.topic`) */\n    desc?: string;\n    /** The number of joined users. */\n    numMembers?: number;\n    /** The list of aliases for this room. */\n    aliases?: string[];\n    /** The timestamp for this room. */\n    timestamp?: number;\n}\n\n/**\n * Construct a new Room Summary. A summary can be used for display on a recent\n * list, without having to load the entire room list into memory.\n * @param roomId - Required. The ID of this room.\n * @param info - Optional. The summary info. Additional keys are supported.\n */\nexport class RoomSummary {\n    public constructor(public readonly roomId: string, info?: IInfo) {}\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAqBA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,WAAW,CAAC;EACdC,WAAWA,CAAiBC,MAAc,EAAEC,IAAY,EAAE;IAAA,KAA9BD,MAAc,GAAdA,MAAc;EAAiB;AACtE;AAACE,OAAA,CAAAJ,WAAA,GAAAA,WAAA"}