0
uq created
Hi,
I want to implement a feature to delete user conversation. Suppose I have a list of users with messages and I want to clear a sepeate user thread with following operations:
Implementation steps :
Add one column i.e Isdeleted in abpchat messages table.
Create one method to delete chat messages for selected user so it will delete all the conversation from the user list.
Fetch only those messages which are not deleted.
Please suggest.
2 Answer(s)
-
0
Hi @uq
You can implement ISoftDelete on ChatMessage entity. Then, you can update the IsDeleted field to true of the entities you want.
The records with IsDeleted=true will be filtered by ABP Framework automatically.
-
0
Thanks it worked :)
Have an answer to this question?
Log in
and write your answer.