Fix listen provider bug
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
84a0ca5d19
commit
3c41ab3ca5
|
@ -107,10 +107,11 @@ class _MessageViewState extends State<MessageView> {
|
||||||
|
|
||||||
void _sendMessage([String? ignoredParam]) {
|
void _sendMessage([String? ignoredParam]) {
|
||||||
if (ctrlrCompose.value.text.isNotEmpty) {
|
if (ctrlrCompose.value.text.isNotEmpty) {
|
||||||
if (Provider.of<AppState>(context).selectedConversation != null && Provider.of<AppState>(context).selectedIndex != null) {
|
if (Provider.of<AppState>(context, listen: false).selectedConversation != null && Provider.of<AppState>(context, listen: false).selectedIndex != null) {
|
||||||
Provider.of<FlwtchState>(context)
|
Provider.of<FlwtchState>(context, listen: false)
|
||||||
.cwtch
|
.cwtch
|
||||||
.GetMessage(Provider.of<AppState>(context).selectedProfile!, Provider.of<AppState>(context).selectedConversation!, Provider.of<AppState>(context).selectedIndex!)
|
.GetMessage(Provider.of<AppState>(context, listen: false).selectedProfile!, Provider.of<AppState>(context, listen: false).selectedConversation!,
|
||||||
|
Provider.of<AppState>(context, listen: false).selectedIndex!)
|
||||||
.then((data) {
|
.then((data) {
|
||||||
try {
|
try {
|
||||||
var messageWrapper = jsonDecode(data! as String);
|
var messageWrapper = jsonDecode(data! as String);
|
||||||
|
|
Loading…
Reference in New Issue