chore: stop audio on recording dialog (#2076)
This commit is contained in:
parent
fb95930e31
commit
f9ee18c77b
2 changed files with 6 additions and 1 deletions
|
|
@ -526,6 +526,9 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
if (state == AppLifecycleState.paused) {
|
||||
clearSelectedEvents();
|
||||
}
|
||||
if (state == AppLifecycleState.hidden) {
|
||||
stopAudioStream.add(null);
|
||||
}
|
||||
// Pangea#
|
||||
if (state != AppLifecycleState.resumed) return;
|
||||
setReadMarker();
|
||||
|
|
@ -925,6 +928,9 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
}
|
||||
|
||||
void voiceMessageAction() async {
|
||||
// #Pangea
|
||||
stopAudioStream.add(null);
|
||||
// Pangea#
|
||||
final scaffoldMessenger = ScaffoldMessenger.of(context);
|
||||
if (PlatformInfos.isAndroid) {
|
||||
final info = await DeviceInfoPlugin().androidInfo;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ import '../../widgets/matrix.dart';
|
|||
import 'package:fluffychat/utils/tor_stub.dart'
|
||||
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
|
||||
|
||||
|
||||
enum PopupMenuAction {
|
||||
settings,
|
||||
invite,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue