mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 03:05:14 +00:00
build: Update matrix dart sdk
This commit is contained in:
parent
4291396f98
commit
fb54548e5c
5 changed files with 11 additions and 10 deletions
|
@ -763,7 +763,7 @@ class ChatController extends State<ChatPageWithRoom>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (final event in selectedEvents) {
|
for (final event in selectedEvents) {
|
||||||
await event.remove();
|
await event.cancelSend();
|
||||||
}
|
}
|
||||||
setState(selectedEvents.clear);
|
setState(selectedEvents.clear);
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
|
@ -813,7 +813,7 @@ class ChatController extends State<ChatPageWithRoom>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await event.remove();
|
await event.cancelSend();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
@ -25,9 +25,9 @@ class MultipleEmotesSettingsView extends StatelessWidget {
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
final packStateEvents = room.states['im.ponies.room_emotes'];
|
final packStateEvents = room.states['im.ponies.room_emotes'];
|
||||||
// we need to manually convert the map using Map.of, otherwise assigning null will throw a type error.
|
// we need to manually convert the map using Map.of, otherwise assigning null will throw a type error.
|
||||||
final Map<String, Event?> packs = packStateEvents != null
|
final packs = packStateEvents != null
|
||||||
? Map<String, Event?>.of(packStateEvents)
|
? Map<String, StrippedStateEvent?>.of(packStateEvents)
|
||||||
: <String, Event?>{};
|
: <String, StrippedStateEvent?>{};
|
||||||
if (!packs.containsKey('')) {
|
if (!packs.containsKey('')) {
|
||||||
packs[''] = null;
|
packs[''] = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,11 +127,12 @@ class UserBottomSheetController extends State<UserBottomSheet> {
|
||||||
textFields: [DialogTextField(hintText: L10n.of(context)!.reason)],
|
textFields: [DialogTextField(hintText: L10n.of(context)!.reason)],
|
||||||
);
|
);
|
||||||
if (reason == null || reason.single.isEmpty) return;
|
if (reason == null || reason.single.isEmpty) return;
|
||||||
|
|
||||||
final result = await showFutureLoadingDialog(
|
final result = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => Matrix.of(widget.outerContext).client.reportContent(
|
future: () => Matrix.of(widget.outerContext).client.reportContent(
|
||||||
user.roomId!,
|
user.room.id,
|
||||||
user.eventId,
|
user.id,
|
||||||
reason: reason.single,
|
reason: reason.single,
|
||||||
score: score,
|
score: score,
|
||||||
),
|
),
|
||||||
|
|
|
@ -1210,10 +1210,10 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: matrix
|
name: matrix
|
||||||
sha256: "32c21a2ac2c221ce887b00a87f965bd8df1a3a4ba8794bbe86be8b56214051fb"
|
sha256: ff221de5ce4cc382147216026096700e47f5902983507decdb3b36087f558dcf
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.28.1"
|
version: "0.29.0"
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -64,7 +64,7 @@ dependencies:
|
||||||
keyboard_shortcuts: ^0.1.4
|
keyboard_shortcuts: ^0.1.4
|
||||||
latlong2: ^0.9.1
|
latlong2: ^0.9.1
|
||||||
linkify: ^5.0.0
|
linkify: ^5.0.0
|
||||||
matrix: ^0.28.1
|
matrix: ^0.29.0
|
||||||
native_imaging: ^0.1.0
|
native_imaging: ^0.1.0
|
||||||
package_info_plus: ^6.0.0
|
package_info_plus: ^6.0.0
|
||||||
pasteboard: ^0.2.0
|
pasteboard: ^0.2.0
|
||||||
|
|
Loading…
Reference in a new issue