mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
chore: Update SDK
This commit is contained in:
parent
6984206d66
commit
3dd56e02ed
@ -48,11 +48,8 @@ class SearchController extends State<Search> {
|
|||||||
final newRoomId = await Matrix.of(context)
|
final newRoomId = await Matrix.of(context)
|
||||||
.client
|
.client
|
||||||
.joinRoom(alias?.isNotEmpty ?? false ? alias : roomId);
|
.joinRoom(alias?.isNotEmpty ?? false ? alias : roomId);
|
||||||
await Matrix.of(context)
|
await Matrix.of(context).client.onSync.stream.firstWhere(
|
||||||
.client
|
(update) => update.rooms?.join?.containsKey(newRoomId) ?? false);
|
||||||
.onRoomUpdate
|
|
||||||
.stream
|
|
||||||
.firstWhere((r) => r.id == newRoomId);
|
|
||||||
return newRoomId;
|
return newRoomId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,10 +41,9 @@ class ChatListItem extends StatelessWidget {
|
|||||||
(await showFutureLoadingDialog(
|
(await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () async {
|
future: () async {
|
||||||
final joinedFuture = room.client.onRoomUpdate.stream
|
final joinedFuture = room.client.onSync.stream
|
||||||
.where((u) =>
|
.where((u) =>
|
||||||
u.id == room.id &&
|
u.rooms?.join?.containsKey(room.id) ?? false)
|
||||||
u.membership == Membership.join)
|
|
||||||
.first;
|
.first;
|
||||||
await room.join();
|
await room.join();
|
||||||
await joinedFuture;
|
await joinedFuture;
|
||||||
|
@ -28,9 +28,9 @@ class PublicRoomListItem extends StatelessWidget {
|
|||||||
if (Matrix.of(context).client.getRoomById(roomId) == null) {
|
if (Matrix.of(context).client.getRoomById(roomId) == null) {
|
||||||
await Matrix.of(context)
|
await Matrix.of(context)
|
||||||
.client
|
.client
|
||||||
.onRoomUpdate
|
.onSync
|
||||||
.stream
|
.stream
|
||||||
.firstWhere((r) => r.id == roomId);
|
.firstWhere((u) => u.rooms?.join?.containsKey(roomId) ?? false);
|
||||||
}
|
}
|
||||||
return roomId;
|
return roomId;
|
||||||
}
|
}
|
||||||
|
@ -719,9 +719,11 @@ packages:
|
|||||||
matrix:
|
matrix:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: matrix
|
path: "."
|
||||||
url: "https://pub.dartlang.org"
|
ref: HEAD
|
||||||
source: hosted
|
resolved-ref: e13b00d127bc68c0659188b1e8aa25f510e9398a
|
||||||
|
url: "https://gitlab.com/famedly/company/frontend/famedlysdk.git"
|
||||||
|
source: git
|
||||||
version: "0.4.3"
|
version: "0.4.3"
|
||||||
matrix_api_lite:
|
matrix_api_lite:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
|
@ -45,7 +45,8 @@ dependencies:
|
|||||||
intl: any
|
intl: any
|
||||||
localstorage: ^4.0.0+1
|
localstorage: ^4.0.0+1
|
||||||
lottie: ^1.1.0
|
lottie: ^1.1.0
|
||||||
matrix: ^0.4.3
|
matrix:
|
||||||
|
git: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
||||||
matrix_link_text: ^1.0.2
|
matrix_link_text: ^1.0.2
|
||||||
native_imaging:
|
native_imaging:
|
||||||
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
||||||
|
Loading…
Reference in New Issue
Block a user