Merge pull request 'Use ProfileInfoState instead of ContactListState in MessageRow Test' (#113) from bugfix into trunk
continuous-integration/drone/push Build is passing Details

Reviewed-on: #113
This commit is contained in:
Dan Ballard 2021-07-14 09:35:01 -07:00
commit 86357be367
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) {