fix: Set chat avatar on web

This commit is contained in:
Christian Pauly 2020-11-25 20:54:30 +01:00
parent da5bc56299
commit 621fcb77a9

View File

@ -218,8 +218,7 @@ class _ChatDetailsState extends State<ChatDetails> {
backgroundColor: Theme.of(context).appBarTheme.color, backgroundColor: Theme.of(context).appBarTheme.color,
flexibleSpace: FlexibleSpaceBar( flexibleSpace: FlexibleSpaceBar(
background: ContentBanner(widget.room.avatar, background: ContentBanner(widget.room.avatar,
onEdit: widget.room.canSendEvent('m.room.avatar') && onEdit: widget.room.canSendEvent('m.room.avatar')
!kIsWeb
? () => setAvatarAction(context) ? () => setAvatarAction(context)
: null), : null),
), ),