downstream: send MSGREFTYPES ISUPPORT

References: https://github.com/ircv3/ircv3-specifications/pull/510
This commit is contained in:
Simon Ser 2023-02-02 19:38:32 +01:00
parent 251af0d9d3
commit 47f0dd5b3f
1 changed files with 1 additions and 0 deletions

View File

@ -1480,6 +1480,7 @@ func (dc *downstreamConn) welcome(ctx context.Context) error {
}
if _, ok := dc.user.msgStore.(msgstore.ChatHistoryStore); ok && dc.network != nil {
isupport = append(isupport, fmt.Sprintf("CHATHISTORY=%v", chatHistoryLimit))
isupport = append(isupport, "MSGREFTYPES=timestamp")
}
if dc.caps.IsEnabled("soju.im/webpush") {
isupport = append(isupport, "VAPID="+dc.srv.webPush.VAPIDKeys.Public)