Better icon

This commit is contained in:
Christian Pauly 2020-03-29 12:45:39 +02:00
commit f4ad9dd0a3
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) {