restoring sendmessage yay
This commit is contained in:
parent
61b838d343
commit
f39335bbc8
|
@ -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),
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue