downstream: send MSGREFTYPES ISUPPORT
References: https://github.com/ircv3/ircv3-specifications/pull/510
This commit is contained in:
parent
251af0d9d3
commit
47f0dd5b3f
@ -1480,6 +1480,7 @@ func (dc *downstreamConn) welcome(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
if _, ok := dc.user.msgStore.(msgstore.ChatHistoryStore); ok && dc.network != nil {
|
if _, ok := dc.user.msgStore.(msgstore.ChatHistoryStore); ok && dc.network != nil {
|
||||||
isupport = append(isupport, fmt.Sprintf("CHATHISTORY=%v", chatHistoryLimit))
|
isupport = append(isupport, fmt.Sprintf("CHATHISTORY=%v", chatHistoryLimit))
|
||||||
|
isupport = append(isupport, "MSGREFTYPES=timestamp")
|
||||||
}
|
}
|
||||||
if dc.caps.IsEnabled("soju.im/webpush") {
|
if dc.caps.IsEnabled("soju.im/webpush") {
|
||||||
isupport = append(isupport, "VAPID="+dc.srv.webPush.VAPIDKeys.Public)
|
isupport = append(isupport, "VAPID="+dc.srv.webPush.VAPIDKeys.Public)
|
||||||
|
Loading…
Reference in New Issue
Block a user