chore: some fixes.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-07-18 16:35:35 +05:30
parent 87e8cd9051
commit b6cc2e0899
2 changed files with 56 additions and 7 deletions
@@ -162,8 +162,7 @@ class BottomRow extends StatelessWidget {
msg = context.translations.threadReplyCountText(replyCount);
}
// ignore: prefer_function_declarations_over_variables
final _onThreadTap = () async {
Future<void> _onThreadTap() async {
try {
var message = this.message;
if (showInChannel) {
@@ -172,12 +171,9 @@ class BottomRow extends StatelessWidget {
}
return onThreadTap!(message);
} catch (e, stk) {
print(e);
print(stk);
// ignore: avoid_returning_null_for_void
return null;
debugPrint('Error while fetching message: $e, $stk');
}
};
}
const usernameKey = Key('username');