refactor: Avoid redundant async

This commit is contained in:
Christian Kußowski 2026-02-19 08:47:10 +01:00
commit d08364688e
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
15 changed files with 153 additions and 166 deletions

View file

@ -257,7 +257,7 @@ class ChatController extends State<ChatPageWithRoom>
}
}
void _loadDraft() async {
void _loadDraft() {
final prefs = Matrix.of(context).store;
final draft = prefs.getString('draft_$roomId');
if (draft != null && draft.isNotEmpty) {