restoring sendmessage yay

This commit is contained in:
erinn 2021-04-07 22:18:02 -07:00
parent 61b838d343
commit f39335bbc8
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class _ContactRowState extends State<ContactRow> {
IconButton(padding: EdgeInsets.zero, iconSize: 16, icon: Icon(Icons.delete, color: Opaque.current().mainTextColor()), onPressed: _btnReject,)])
: Text(contact.unreadMessages.toString()), //(nb: Icons.create is a pencil and we use it for "edit", not create)
title: Text(
(contact.isInvitation ? "invite " : "non-invite ") + (contact.isBlocked ? "blokt" : "nonblokt"),//contact.nickname,
contact.nickname,//(contact.isInvitation ? "invite " : "non-invite ") + (contact.isBlocked ? "blokt" : "nonblokt"),//
style: Provider.of<FlwtchState>(context).biggerFont,
),
subtitle: Text(contact.status),

View File

@ -24,7 +24,7 @@ class _MessageBubbleState extends State<MessageBubble> {
super.didChangeDependencies();
print("requesting message " + widget.messageIndex.toString());
Provider.of<FlwtchState>(context).cwtch.GetMessage(widget.profile.onion, widget.contactOnion, widget.messageIndex).then((jsonMessage) {
Provider.of<FlwtchState>(context, listen: false).cwtch.GetMessage(widget.profile.onion, widget.contactOnion, widget.messageIndex).then((jsonMessage) {
print("got message: " + widget.messageIndex.toString() + ": " + jsonMessage);
dynamic messageWrapper = jsonDecode(jsonMessage);
dynamic message = jsonDecode(messageWrapper['Message']);