mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 17:35:18 +00:00
fix: Do not unnecessary request all members in public rooms
This commit is contained in:
parent
1d72ab512a
commit
d5e8d9939d
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ class EncryptionButton extends StatelessWidget {
|
||||||
.where((s) => s.deviceLists != null),
|
.where((s) => s.deviceLists != null),
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
return FutureBuilder<EncryptionHealthState>(
|
return FutureBuilder<EncryptionHealthState>(
|
||||||
future: room.calcEncryptionHealthState(),
|
future: room.encrypted
|
||||||
|
? room.calcEncryptionHealthState()
|
||||||
|
: Future.value(EncryptionHealthState.allVerified),
|
||||||
builder: (BuildContext context, snapshot) => IconButton(
|
builder: (BuildContext context, snapshot) => IconButton(
|
||||||
tooltip: room.encrypted
|
tooltip: room.encrypted
|
||||||
? L10n.of(context)!.encrypted
|
? L10n.of(context)!.encrypted
|
||||||
|
|
Loading…
Reference in a new issue