Delay updating on send again
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
8141f99588
commit
5e8fb26893
|
@ -83,9 +83,11 @@ class _MessageViewState extends State<MessageView> {
|
|||
.SendMessage(Provider.of<ContactInfoState>(context, listen: false).profileOnion, Provider.of<ContactInfoState>(context, listen: false).onion, jsonEncode(cm));
|
||||
ctrlrCompose.clear();
|
||||
focusNode.requestFocus();
|
||||
Provider.of<ContactInfoState>(context, listen: false).totalMessages++;
|
||||
// Resort the contact list...
|
||||
Provider.of<ProfileInfoState>(context, listen: false).contactList.updateLastMessageTime(Provider.of<ContactInfoState>(context, listen: false).onion, DateTime.now());
|
||||
Future.delayed(const Duration(milliseconds: 80), () {
|
||||
Provider.of<ContactInfoState>(context, listen: false).totalMessages++;
|
||||
// Resort the contact list...
|
||||
Provider.of<ProfileInfoState>(context, listen: false).contactList.updateLastMessageTime(Provider.of<ContactInfoState>(context, listen: false).onion, DateTime.now());
|
||||
});
|
||||
}
|
||||
|
||||
Widget _buildComposeBox() {
|
||||
|
|
Loading…
Reference in New Issue