Revert "Add intent system to widget URL creation. (#4427)" (#4504)

This reverts commit 99423bc437.
This commit is contained in:
Doug
2025-09-12 10:30:39 +01:00
committed by GitHub
parent c2ac60f1e6
commit 6d6ec3b7f2
8 changed files with 18 additions and 84 deletions
-21
View File
@@ -1,21 +0,0 @@
//
// Copyright 2025 New Vector Ltd.
//
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
// Please see LICENSE files in the repository root for full details.
//
import MatrixRustSDK
extension RoomProtocol {
var joinCallIntent: Intent {
get async {
switch await (hasActiveRoomCall(), isDirect()) {
case (true, true): .joinExistingDm
case (true, false): .joinExisting
case (false, true): .startCallDm
case (false, false): .startCall
}
}
}
}