minor fixes
This commit is contained in:
@@ -1603,7 +1603,7 @@ class ChannelClientState {
|
|||||||
message.createdAt.isBefore(
|
message.createdAt.isBefore(
|
||||||
DateTime.now().subtract(
|
DateTime.now().subtract(
|
||||||
const Duration(
|
const Duration(
|
||||||
seconds: 1,
|
seconds: 5,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1168,7 +1168,9 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildMentionsOverlayEntry() {
|
Widget _buildMentionsOverlayEntry() {
|
||||||
if (textEditingController.value.selection.start < 0) {
|
final channel = StreamChannel.of(context).channel;
|
||||||
|
if (textEditingController.value.selection.start < 0 ||
|
||||||
|
channel.state == null) {
|
||||||
return const Offstage();
|
return const Offstage();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1197,7 +1199,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
query: query,
|
query: query,
|
||||||
mentionAllAppUsers: widget.mentionAllAppUsers,
|
mentionAllAppUsers: widget.mentionAllAppUsers,
|
||||||
client: StreamChat.of(context).client,
|
client: StreamChat.of(context).client,
|
||||||
channel: StreamChannel.of(context).channel,
|
channel: channel,
|
||||||
size: Size(renderObject.size.width - 16, 400),
|
size: Size(renderObject.size.width - 16, 400),
|
||||||
mentionsTileBuilder: tileBuilder,
|
mentionsTileBuilder: tileBuilder,
|
||||||
onMentionUserTap: (user) {
|
onMentionUserTap: (user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user