feat: Better image sending experience
This commit is contained in:
parent
63563a245d
commit
cc0eba83fd
6 changed files with 17 additions and 18 deletions
|
|
@ -414,10 +414,10 @@ class ChatController extends State<Chat> {
|
|||
bytes: audioFile.readAsBytesSync(),
|
||||
name: audioFile.path,
|
||||
);
|
||||
await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () =>
|
||||
room!.sendFileEvent(file, inReplyTo: replyEvent, extraContent: {
|
||||
await room!.sendFileEvent(
|
||||
file,
|
||||
inReplyTo: replyEvent,
|
||||
extraContent: {
|
||||
'info': {
|
||||
...file.info,
|
||||
'duration': result.duration,
|
||||
|
|
@ -427,7 +427,7 @@ class ChatController extends State<Chat> {
|
|||
'duration': result.duration,
|
||||
'waveform': result.waveform,
|
||||
},
|
||||
}),
|
||||
},
|
||||
);
|
||||
setState(() {
|
||||
replyEvent = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue