@@ -162,8 +162,7 @@ class BottomRow extends StatelessWidget {
|
|||||||
msg = context.translations.threadReplyCountText(replyCount);
|
msg = context.translations.threadReplyCountText(replyCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore: prefer_function_declarations_over_variables
|
Future<void> _onThreadTap() async {
|
||||||
final _onThreadTap = () async {
|
|
||||||
try {
|
try {
|
||||||
var message = this.message;
|
var message = this.message;
|
||||||
if (showInChannel) {
|
if (showInChannel) {
|
||||||
@@ -172,12 +171,9 @@ class BottomRow extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return onThreadTap!(message);
|
return onThreadTap!(message);
|
||||||
} catch (e, stk) {
|
} catch (e, stk) {
|
||||||
print(e);
|
debugPrint('Error while fetching message: $e, $stk');
|
||||||
print(stk);
|
|
||||||
// ignore: avoid_returning_null_for_void
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
const usernameKey = Key('username');
|
const usernameKey = Key('username');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user