You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-08-08 03:42:14 +03:00
Remove dead code (#9035)
This commit is contained in:
@@ -14,8 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { MatrixClient, MatrixEvent, Room } from "matrix-js-sdk/src/matrix";
|
||||
import { Thread } from "matrix-js-sdk/src/models/thread";
|
||||
import { MatrixEvent, Room } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import { mkMessage, MessageEventProps } from "./test-utils";
|
||||
|
||||
@@ -89,8 +88,3 @@ export const makeThreadEvents = ({
|
||||
|
||||
return { rootEvent, events };
|
||||
};
|
||||
|
||||
export const makeThread = (client: MatrixClient, room: Room, props: MakeThreadEventsProps): Thread => {
|
||||
const { rootEvent, events } = makeThreadEvents(props);
|
||||
return new Thread(rootEvent.getId(), rootEvent, { initialEvents: events, room, client });
|
||||
};
|
||||
|
Reference in New Issue
Block a user