Use ProfileInfoState instead of ContactListState in MessageRow Test #113

Merged
dan merged 1 commits from bugfix into trunk 2021-07-14 16:35:02 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class MessageRowState extends State<MessageRow> {
@override
Widget build(BuildContext context) {
var fromMe = Provider.of<MessageMetadata>(context).senderHandle == Provider.of<ProfileInfoState>(context).onion;
var isContact = Provider.of<ContactListState>(context).getContact(Provider.of<MessageMetadata>(context).senderHandle) != null;
var isContact = Provider.of<ProfileInfoState>(context).contactList.getContact(Provider.of<MessageMetadata>(context).senderHandle) != null;
var senderDisplayStr = "";
if (!fromMe) {