fix: Minor fixes

This commit is contained in:
Christian Pauly 2020-10-04 20:30:06 +02:00
parent 6b7d21d034
commit aee854e5d5
2 changed files with 18 additions and 6 deletions

View file

@ -456,12 +456,16 @@ class _ChatListState extends State<ChatList> {
ConnectionStatusHeader(), ConnectionStatusHeader(),
Expanded( Expanded(
child: StreamBuilder( child: StreamBuilder(
stream: Matrix.of(context) stream:
.client Matrix.of(context).client.onSync.stream.where(
.onSync (s) =>
.stream s.hasRoomUpdate ||
.where((s) => s.accountData
s.hasRoomUpdate || s.hasPresenceUpdate), .where((a) =>
a.type ==
MatrixState.userStatusesType)
.isNotEmpty,
),
builder: (context, snapshot) { builder: (context, snapshot) {
return FutureBuilder<void>( return FutureBuilder<void>(
future: waitForFirstSync(context), future: waitForFirstSync(context),

View file

@ -45,6 +45,14 @@ apply_standard_settings(${BINARY_NAME})
target_link_libraries(${BINARY_NAME} PRIVATE flutter) target_link_libraries(${BINARY_NAME} PRIVATE flutter)
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
add_dependencies(${BINARY_NAME} flutter_assemble) add_dependencies(${BINARY_NAME} flutter_assemble)
# Only the install-generated bundle's copy of the executable will launch
# correctly, since the resources must in the right relative locations. To avoid
# people trying to run the unbundled copy, put it in a subdirectory instead of
# the default top-level location.
set_target_properties(${BINARY_NAME}
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
)
# Generated plugin build rules, which manage building the plugins and adding # Generated plugin build rules, which manage building the plugins and adding
# them to the application. # them to the application.