mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-28 07:19:32 +01:00
fix: Don't double-confirm sending audio messages
This commit is contained in:
parent
7b1262f355
commit
168b8b076f
@ -253,13 +253,14 @@ class _ChatState extends State<_Chat> {
|
||||
));
|
||||
if (result == null) return;
|
||||
final audioFile = File(result);
|
||||
await showDialog(
|
||||
context: context,
|
||||
builder: (context) => SendFileDialog(
|
||||
file: MatrixAudioFile(
|
||||
// as we already explicitly say send in the recording dialog,
|
||||
// we do not need the send file dialog anymore. We can just send this straight away.
|
||||
await SimpleDialogs(context).tryRequestWithLoadingDialog(
|
||||
room.sendFileEvent(
|
||||
MatrixAudioFile(
|
||||
bytes: audioFile.readAsBytesSync(), name: audioFile.path),
|
||||
room: room,
|
||||
));
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
String _getSelectedEventString(BuildContext context) {
|
||||
|
Loading…
Reference in New Issue
Block a user