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) {
|
||||
await event.remove();
|
||||
await event.cancelSend();
|
||||
}
|
||||
setState(selectedEvents.clear);
|
||||
} catch (e, s) {
|
||||
|
|
@ -813,7 +813,7 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
);
|
||||
}
|
||||
} else {
|
||||
await event.remove();
|
||||
await event.cancelSend();
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ class MultipleEmotesSettingsView extends StatelessWidget {
|
|||
builder: (context, snapshot) {
|
||||
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.
|
||||
final Map<String, Event?> packs = packStateEvents != null
|
||||
? Map<String, Event?>.of(packStateEvents)
|
||||
: <String, Event?>{};
|
||||
final packs = packStateEvents != null
|
||||
? Map<String, StrippedStateEvent?>.of(packStateEvents)
|
||||
: <String, StrippedStateEvent?>{};
|
||||
if (!packs.containsKey('')) {
|
||||
packs[''] = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,11 +127,12 @@ class UserBottomSheetController extends State<UserBottomSheet> {
|
|||
textFields: [DialogTextField(hintText: L10n.of(context)!.reason)],
|
||||
);
|
||||
if (reason == null || reason.single.isEmpty) return;
|
||||
|
||||
final result = await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () => Matrix.of(widget.outerContext).client.reportContent(
|
||||
user.roomId!,
|
||||
user.eventId,
|
||||
user.room.id,
|
||||
user.id,
|
||||
reason: reason.single,
|
||||
score: score,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue