add missing permissions and ui

This commit is contained in:
Salvatore Giordano
2022-01-05 11:18:46 +01:00
parent a5baffae29
commit 5d163b9a86
10 changed files with 171 additions and 125 deletions
@@ -1250,6 +1250,13 @@ class _MessageWidgetState extends State<MessageWidget>
final channel = StreamChannel.of(context).channel;
if (!channel.ownCapabilities.contains(PermissionType.readEvents)) {
return SendingIndicator(
message: message,
size: style!.fontSize,
);
}
return BetterStreamBuilder<List<Read>>(
stream: channel.state?.readStream,
initialData: channel.state?.read,