matrix-hacks / matrix-puppet-bridge

Facilitates implementation of double puppeted Matrix bridges
80 stars 28 forks source link

handleThirdPartyImageRoomMessage fails on undefined path #32

Open Limvot opened 6 years ago

Limvot commented 6 years ago

handleThirdPartyImageRoomMessage says that either of url, path, or buffer are fine to be passed in, but then calls isFilenameTagged(path), which I believe throws an exception when path is undefined, causing the image message not to be sent. https://github.com/matrix-hacks/matrix-puppet-bridge/blob/d5af7b9f4d5a0f06ec75d470cecbc8acc58dea7c/src/base.js#L644