mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(irc): view channel history (#987)
fix(irc): irc monitor channels * base64 sse stream key
This commit is contained in:
parent
2af0021ce6
commit
ecc84f5f2d
3 changed files with 11 additions and 4 deletions
|
@ -547,7 +547,9 @@ func (h *Handler) onNick(msg ircmsg.Message) {
|
|||
}
|
||||
|
||||
func (h *Handler) publishSSEMsg(msg domain.IrcMessage) {
|
||||
h.sse.Publish(fmt.Sprintf("%d%s", h.network.ID, strings.TrimPrefix(msg.Channel, "#")), &sse.Event{
|
||||
key := genSSEKey(h.network.ID, msg.Channel)
|
||||
|
||||
h.sse.Publish(key, &sse.Event{
|
||||
Data: msg.Bytes(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue