Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
31 stars 10 forks source link

No support for receiving m.video messages #68

Closed dbutti closed 1 year ago

dbutti commented 1 year ago

It should be possible to receive messages of type "m.video". This type is currently not supported, and corresponding messages are simply ignored by the receive node.

dbutti commented 1 year ago

Just answering to myself... in fact all that is needed is to apply the very same logic which is used for "m.image".

For example, I have patched like this lines 98:101 in src/matrix_receive.js


                case 'm.image':                                                                                       
                case 'm.video':                                                    
                    if(!node.acceptImages) return;
                    msg.filename = msg.content.filename || msg.content.body;  ```

and video media files are handled correctly the same way images do.
skylord123 commented 1 year ago

This has been added on v0.7.0, thanks!