How to prevent a file message from being sent?


I’d like to prevent a File message from being sent through chat whenever its attachment is of a certain file type. Is there a way to do that? I played with onBeforeSendFileMessage and couldn’t find a way. Would appreciate your support.

Thank you!

@sendbird/chat”: “4.9.11”,
@sendbird/uikit-react”: “3.6.8”,