Open thomas-profitt opened 5 years ago
Just want to poke this as I came to report it. It adds a lot of noise too Riot especially in a slack instance that uses a lot of threads.
I'm facing this bug as well. Any workaround available?
It looks like matrix-puppet-slack is generating empty messages with message body content: ' \ufeff' for some reason? So I created an ugly workaround but it works for me (it doesn't fix the root cause but filters these empty messages sent by my user):
After npm install has executed I manually edited files: node_modules/matrix-js-sdk/lib/client.js node_modules/matrix-js-sdk/src/client.js by adding following code
if (content.body == ' \ufeff') {
console.log(`Skipping empty event created by matrix-puppet-slack (BUG: https://github.com/matrix-hacks/matrix-puppet-slack/issues/57)`);
return;
}
after line:
console.log("sendEvent of type " + eventType + " in " + roomId + " with txnId " + txnId);
And then restarted the matrix-puppet-slack.