mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 16:20:26 +00:00
Do not break messages on newline (slack). Closes #258
This commit is contained in:
parent
86cd7f1ba6
commit
90a61f15cc
@ -234,8 +234,7 @@ func (b *Bslack) handleSlack() {
|
||||
if message.Text == "" || message.Username == "" {
|
||||
continue
|
||||
}
|
||||
texts := strings.Split(message.Text, "\n")
|
||||
for _, text := range texts {
|
||||
text := message.Text
|
||||
text = b.replaceURL(text)
|
||||
text = html.UnescapeString(text)
|
||||
flog.Debugf("Sending message from %s on %s to gateway", message.Username, b.Account)
|
||||
@ -253,7 +252,6 @@ func (b *Bslack) handleSlack() {
|
||||
}
|
||||
b.Remote <- msg
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
|
||||
|
Loading…
Reference in New Issue
Block a user