Need to remove Send File button from chat window

Hey Guys! Hope someone can share how this can be done. I need to disable/remove send file button from the chat window and retain the screenshot button. Is this possible. I am using the spark 3.0.0-beta version.

Thanks in advance!

File transfer and screenshot transfer are related. If you turn off file transfer, then you will not be able to transfer a screenshot.

Thanks @ilyaHlevnoy

Would it be possible to try to recompile the source code to not include just the sendfile button?