Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I set message status for the specified message #293

Open
function2000 opened this issue Dec 16, 2024 · 0 comments
Open

How can I set message status for the specified message #293

function2000 opened this issue Dec 16, 2024 · 0 comments

Comments

@function2000
Copy link

For example, I am sending 5 messages, and found all 5 messages are not sent successfully, so I need to set undelivered for all these message, then I do like below:
chatController!.initialMessageList[0].setStatus = MessageStatus.undelivered;
chatController!.initialMessageList[1].setStatus = MessageStatus.undelivered;
chatController!.initialMessageList[2].setStatus = MessageStatus.undelivered;
chatController!.initialMessageList[3].setStatus = MessageStatus.undelivered;
chatController!.initialMessageList[4].setStatus = MessageStatus.undelivered;

But it looks only last one works. Can you please check?
Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant