Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Abp chat module delete conversation of users #6158


User avatar
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 :

  1. Add one column i.e Isdeleted in abpchat messages table.

  2. Create one method to delete chat messages for selected user so it will delete all the conversation from the user list.

  3. Fetch only those messages which are not deleted.

Please suggest.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    uq created

    Thanks it worked :)