Better icon

This commit is contained in:
Christian Pauly
2020-03-29 12:45:39 +02:00
parent d65c6099f1
commit 5a95f1c886
31 changed files with 9 additions and 4 deletions

View File

@ -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) {