mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
fix: Do not unnecessary request all members in public rooms
This commit is contained in:
parent
f53d17eab7
commit
8c4b2ade88
@ -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…
x
Reference in New Issue
Block a user