|
@@ -79,7 +79,7 @@ export class FeedbackPage implements OnInit {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
let sendUser = Parse.User?.current()?.toPointer()
|
|
let sendUser = Parse.User?.current()?.toPointer()
|
|
- let receiveUser = {__type:"Pointer",className:"_User",objectId:this.userid}
|
|
|
|
|
|
+ let receiveUser = {__type:"Pointer",className:"_User",objectId:this.targetId}
|
|
let Message = Parse.Object.extend("Message");
|
|
let Message = Parse.Object.extend("Message");
|
|
let message = new Message();
|
|
let message = new Message();
|
|
message.set("sendUser",sendUser)
|
|
message.set("sendUser",sendUser)
|
|
@@ -144,7 +144,12 @@ export class FeedbackPage implements OnInit {
|
|
]
|
|
]
|
|
}})
|
|
}})
|
|
|
|
|
|
|
|
+ query.addDescending("createdAt")
|
|
|
|
+ query.limit(5)
|
|
|
|
+ query.include("sendUser","receiveUser")
|
|
|
|
+
|
|
let list = await query.find();
|
|
let list = await query.find();
|
|
|
|
+ console.log(list)
|
|
if(list?.length){
|
|
if(list?.length){
|
|
this.messageList = list
|
|
this.messageList = list
|
|
}
|
|
}
|