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) {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class _ChatState extends State<_Chat> {
|
|||
if (timeline.events.last.type != EventTypes.RoomCreate) {
|
||||
setState(() => this._loadingHistory = true);
|
||||
await timeline.requestHistory(historyCount: _loadHistoryCount);
|
||||
setState(() => this._loadingHistory = false);
|
||||
if (mounted) setState(() => this._loadingHistory = false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue