diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index 53bc9eaac..90cf94d50 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -232,34 +232,31 @@ class ChatView extends StatelessWidget { // #Pangea : controller.widget.backButton != null ? controller.widget.backButton! + // : FluffyThemes.isColumnMode(context) + // ? null // Pangea# - : FluffyThemes.isColumnMode(context) - ? null - : StreamBuilder( - stream: Matrix.of(context) - .client - .onSync - .stream - .where( + : StreamBuilder( + stream: + Matrix.of(context).client.onSync.stream.where( (syncUpdate) => syncUpdate.hasRoomUpdate, ), - // #Pangea - // builder: (context, _) => UnreadRoomsBadge( - builder: (context, _) => Center( - child: SizedBox( - height: kToolbarHeight, - child: UnreadRoomsBadge( - // Pangea# - filter: (r) => r.id != controller.roomId, - badgePosition: BadgePosition.topEnd( - end: 8, - top: 4, - ), - child: const Center(child: BackButton()), - ), + // #Pangea + // builder: (context, _) => UnreadRoomsBadge( + builder: (context, _) => Center( + child: SizedBox( + height: kToolbarHeight, + child: UnreadRoomsBadge( + // Pangea# + filter: (r) => r.id != controller.roomId, + badgePosition: BadgePosition.topEnd( + end: 8, + top: 4, ), + child: const Center(child: BackButton()), ), ), + ), + ), titleSpacing: FluffyThemes.isColumnMode(context) ? 24 : 0, title: ChatAppBarTitle(controller), actions: _appBarActions(context),