What is Target ID?
Note:
The Target ID is the ID of the target, and the Sender User ID is the ID of the sender.
Example:
If user1 is the sender and user2 is the receiver, the corresponding Target ID values are as follows:
user1(sender)
conversation type | targetId | senderUserId |
---|---|---|
one-to-one | user2 | user1 |
group | group id | user1 |
chatroom | chatroom id | user1 |
user2(receiver)
conversation type | targetId | senderUserId |
---|---|---|
one-to-one | user1 | user1 |
group | group id | user1 |
chatroom | chatroom id | user1 |
When are Target ID and Sender User ID equal?
As shown in the table above, in a one-to-one chat scenario, from the receiver’s perspective, the Target ID and Sender User ID are equal.