🐛 Bug fixes in call

This commit is contained in:
LittleSheep 2024-12-16 19:57:00 +08:00
parent 6d0f62016a
commit d98f6c8d18
5 changed files with 17 additions and 11 deletions

View File

@ -34,9 +34,9 @@
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSCameraUsageDescription</key> <key>NSCameraUsageDescription</key>
<string>Grant access to Photo Library will allow Solian take photo or video for your post.</string> <string>Grant access to Camera will allow Solian take photo or video for your post.</string>
<key>NSMicrophoneUsageDescription</key> <key>NSMicrophoneUsageDescription</key>
<string>Grant access to Photo Library will allow Solian record audio for your post.</string> <string>Grant access to Microphone will allow Solian record audio for your post.</string>
<key>NSPhotoLibraryAddUsageDescription</key> <key>NSPhotoLibraryAddUsageDescription</key>
<string>Grant access to Photo Library will allow Solian download photo to album for you.</string> <string>Grant access to Photo Library will allow Solian download photo to album for you.</string>
<key>NSPhotoLibraryUsageDescription</key> <key>NSPhotoLibraryUsageDescription</key>

View File

@ -158,7 +158,7 @@ class _ChatRoomScreenState extends State<ChatRoomScreen> {
GoRouter.of(context).pushNamed( GoRouter.of(context).pushNamed(
'chatCallRoom', 'chatCallRoom',
pathParameters: { pathParameters: {
'scope': _channel!.realm!.alias, 'scope': _channel!.realm?.alias ?? 'global',
'alias': _channel!.alias, 'alias': _channel!.alias,
}, },
); );

View File

@ -1,8 +1,10 @@
import 'dart:async'; import 'dart:async';
import 'dart:developer'; import 'dart:developer';
import 'dart:io';
import 'package:cross_file/cross_file.dart'; import 'package:cross_file/cross_file.dart';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart'; import 'package:flutter/scheduler.dart';
import 'package:gap/gap.dart'; import 'package:gap/gap.dart';
@ -103,9 +105,11 @@ class _AppSharingListenerState extends State<AppSharingListener> {
@override @override
void initState() { void initState() {
super.initState(); super.initState();
if(!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
_initialize(); _initialize();
_initialHandle(); _initialHandle();
} }
}
@override @override
void dispose() { void dispose() {

View File

@ -130,7 +130,7 @@ class _ChatCallPrejoinPopupState extends State<ChatCallPrejoinPopup> {
Text('callCamera').tr(), Text('callCamera').tr(),
Switch( Switch(
value: call.enableVideo, value: call.enableVideo,
onChanged: (value) => call.setEnableAudio(value), onChanged: call.setEnableVideo,
), ),
], ],
).padding(bottom: 5), ).padding(bottom: 5),

View File

@ -31,16 +31,18 @@
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
<string>NSApplication</string> <string>NSApplication</string>
<key>NSCameraUsageDescription</key> <key>NSCameraUsageDescription</key>
<string>Grant access to Photo Library will allow Solian take photo or video for your post.</string> <string>Grant access to Camera will allow Solian use your camera during a call.</string>
<key>NSMicrophoneUsageDescription</key> <key>NSMicrophoneUsageDescription</key>
<string>Grant access to Photo Library will allow Solian record audio for your post.</string> <string>Grant access to Microphone will allow Solian use your microphone during a call.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Grant access to Photo Library will allow Solian download photo to album for you.</string>
<key>NSPhotoLibraryUsageDescription</key> <key>NSPhotoLibraryUsageDescription</key>
<string>Grant access to Photo Library will allow Solian upload photo or video for your post.</string> <string>Grant access to Photo Library will allow Solian upload photo or video for your post.</string>
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
<string>$(PRODUCT_NAME)</string> <string>$(PRODUCT_NAME)</string>
<key>NSCameraUseContinuityCameraDeviceType</key>
<string></string>
<key>ITSAppUsesNonExemptEncryption</key> <key>ITSAppUsesNonExemptEncryption</key>
<false/> <false/>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Grant access to Photo Library will allow Solian download photo to album for you.</string>
</dict> </dict>
</plist> </plist>