This commit is contained in:
Avently 2023-12-06 02:45:11 +07:00
parent 68058a0091
commit 530faf39c1
5 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,7 @@ import kotlinx.serialization.encodeToString
@SuppressLint("SourceLockedOrientationActivity")
@Composable
actual fun ActiveCallView() {
throw Exception()
val chatModel = ChatModel
BackHandler(onBack = {
val call = chatModel.activeCall.value

View File

@ -31,6 +31,7 @@ fun VerifyCodeView(
verify: suspend (String?) -> Pair<Boolean, String>?,
close: () -> Unit,
) {
throw Exception()
if (connectionCode != null) {
VerifyCodeLayout(
displayName,

View File

@ -222,6 +222,7 @@ fun ChatItemView(
})
}
if ((cItem.content.msgContent is MsgContent.MCImage || cItem.content.msgContent is MsgContent.MCVideo || cItem.content.msgContent is MsgContent.MCFile || cItem.content.msgContent is MsgContent.MCVoice) && (getLoadedFilePath(cItem.file) != null || (chatModel.connectedToRemote() && cachedRemoteReqs[cItem.file?.fileSource] != false))) {
throw Exception()
SaveContentItemAction(cItem, saveFileLauncher, showMenu)
}
if (cItem.meta.editable && cItem.content.msgContent !is MsgContent.MCVoice && !live) {

View File

@ -34,6 +34,7 @@ fun NotificationsSettingsView(
notificationPreviewMode = chatModel.notificationPreviewMode,
showPage = { page ->
ModalManager.start.showModalCloseable(true) {
throw Exception()
when (page) {
CurrentPage.NOTIFICATIONS_MODE -> NotificationsModeView(chatModel.controller.appPrefs.notificationsMode.state) { changeNotificationsMode(it, chatModel) }
CurrentPage.NOTIFICATION_PREVIEW_MODE -> NotificationPreviewView(chatModel.notificationPreviewMode, onNotificationPreviewModeSelected)

View File

@ -13,8 +13,10 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.WindowExceptionHandler
import chat.simplex.common.model.*
import chat.simplex.common.platform.*
import chat.simplex.common.simplexWindowState
import chat.simplex.common.ui.theme.*
import chat.simplex.common.views.chat.item.ItemAction
import chat.simplex.common.views.helpers.*
@ -40,6 +42,8 @@ val connections = ArrayList<WebSocket>()
@Composable
actual fun ActiveCallView() {
throw Exception()
val endCall = {
val call = chatModel.activeCall.value
if (call != null) withBGApi { chatModel.callManager.endCall(call) }