canRetryMessage
Determines whether the given message can be retried.
A message can be retried when:
Retry message functionality is enabled in the UI configuration
The message was sent by the current user
The message has failed permanently
Return
true if the message can be retried, false otherwise.
Parameters
retryMessageEnabled
Whether the retry message feature is enabled in the UI.
currentUser
The currently authenticated user.
message
The message to check for retry eligibility.