Better icon
This commit is contained in:
parent
9d63db00d1
commit
f4ad9dd0a3
31 changed files with 9 additions and 4 deletions
|
|
@ -72,7 +72,7 @@ class _EncryptionButtonState extends State<EncryptionButton> {
|
|||
.stream
|
||||
.listen((s) => setState(() => null));
|
||||
return FutureBuilder<List<DeviceKeys>>(
|
||||
future: widget.room.getUserDeviceKeys(),
|
||||
future: widget.room.encrypted ? widget.room.getUserDeviceKeys() : null,
|
||||
builder: (BuildContext context, snapshot) {
|
||||
Color color;
|
||||
if (widget.room.encrypted && snapshot.hasData) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue