use offline list if error
This commit is contained in:
@@ -429,7 +429,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
return ListView(
|
return ListView(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
children: snapshot.data
|
children: (snapshot.data ?? members)
|
||||||
.map((m) => ListTile(
|
.map((m) => ListTile(
|
||||||
leading: UserAvatar(
|
leading: UserAvatar(
|
||||||
user: m.user,
|
user: m.user,
|
||||||
@@ -991,7 +991,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
.contains('@')) {
|
.contains('@')) {
|
||||||
if (_debounce?.isActive == true) _debounce.cancel();
|
if (_debounce?.isActive == true) _debounce.cancel();
|
||||||
_debounce = Timer(
|
_debounce = Timer(
|
||||||
const Duration(milliseconds: 350),
|
const Duration(milliseconds: 500),
|
||||||
() {
|
() {
|
||||||
_mentionsOverlay = _buildMentionsOverlayEntry();
|
_mentionsOverlay = _buildMentionsOverlayEntry();
|
||||||
Overlay.of(context).insert(_mentionsOverlay);
|
Overlay.of(context).insert(_mentionsOverlay);
|
||||||
|
|||||||
Reference in New Issue
Block a user