fix: User Status crash

This commit is contained in:
Christian Pauly 2020-10-04 19:22:31 +02:00
parent 540ff683d8
commit 0413b0c0b1

View file

@ -17,7 +17,7 @@ class StatusListItem extends StatelessWidget {
future: client.getProfileFromUserId(status.userId), future: client.getProfileFromUserId(status.userId),
builder: (context, snapshot) { builder: (context, snapshot) {
final profile = final profile =
snapshot.data ?? Profile(client.userID, Uri.parse('')); snapshot.data ?? Profile(status.userId.localpart, null);
return InkWell( return InkWell(
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
onTap: () => Navigator.of(context).push( onTap: () => Navigator.of(context).push(