update main model
This commit is contained in:
@@ -26,7 +26,8 @@ class MessageModel extends BaseModel {
|
||||
StreamSubscription<QuerySnapshot> listener;
|
||||
|
||||
static const int rowPerLoad = 20;
|
||||
void initQuery(String userID) {
|
||||
void initQuery(String? userID) {
|
||||
if(userID == null)return;
|
||||
this.messages = [];
|
||||
this.userID = userID;
|
||||
this.prevSnap = null;
|
||||
|
||||
Reference in New Issue
Block a user