update main model

This commit is contained in:
tzw
2021-09-10 15:15:20 +06:30
parent 51a5fe0740
commit 3eacbef117
11 changed files with 68 additions and 70 deletions

View File

@@ -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;