matrix-appservice-slack
matrix-appservice-slack copied to clipboard
M->S messages get the first newline eaten
If I send a multiline Matrix message, the bridged message on Slack is missing the first newline in the message. If there are multiple newlines, only the first disappears.
I can't reproduce this but sending a message with only a single line break ends up stripping that line break.
oh I can repro this, I misread the bug.
I'm not sure if this is related, but no newlines in slack go through to matrix:
{
"content": {
"body": "1\n2\n3",
"format": "org.matrix.custom.html",
"formatted_body": "1\n2\n3",
"msgtype": "m.text"
},
"origin_server_ts": ,
"sender": "@_slack_...",
"type": "m.room.message",
"unsigned": {
"age": 268
},
"event_id": "",
"room_id": ""
}
But everything is on the same line in matrix.
When I send from matrix it of course shows up properly, the message source doesn't look that different. It's \n in both.
{
"content": {
"body": "1\n2\n3",
"msgtype": "m.text"
},
"origin_server_ts": ,
"sender": "@Stephen304:matrix.org",
"type": "m.room.message",
"unsigned": {
"age": 200,
"transaction_id": ""
},
"event_id": "",
"room_id": ""
}
I'm not sure if this is related, but no newlines in slack go through to matrix:
That's #547.
(Will be) fixed in https://github.com/matrix-org/matrix-appservice-slack/pull/781