mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
fix #387
This commit is contained in:
parent
c2300e3e66
commit
0346c23ae0
@ -1120,7 +1120,7 @@ func (session *Session) sendFromClientInternal(blocking bool, serverTime time.Ti
|
|||||||
}
|
}
|
||||||
// attach message-id
|
// attach message-id
|
||||||
if msgid != "" && session.capabilities.Has(caps.MessageTags) {
|
if msgid != "" && session.capabilities.Has(caps.MessageTags) {
|
||||||
msg.SetTag("draft/msgid", msgid)
|
msg.SetTag("msgid", msgid)
|
||||||
}
|
}
|
||||||
// attach server-time
|
// attach server-time
|
||||||
if session.capabilities.Has(caps.ServerTime) {
|
if session.capabilities.Has(caps.ServerTime) {
|
||||||
|
@ -90,7 +90,7 @@ func (rb *ResponseBuffer) AddFromClient(time time.Time, msgid string, fromNickMa
|
|||||||
}
|
}
|
||||||
// attach message-id
|
// attach message-id
|
||||||
if len(msgid) > 0 && rb.session.capabilities.Has(caps.MessageTags) {
|
if len(msgid) > 0 && rb.session.capabilities.Has(caps.MessageTags) {
|
||||||
msg.SetTag("draft/msgid", msgid)
|
msg.SetTag("msgid", msgid)
|
||||||
}
|
}
|
||||||
// attach server-time
|
// attach server-time
|
||||||
if rb.session.capabilities.Has(caps.ServerTime) && !msg.HasTag("time") {
|
if rb.session.capabilities.Has(caps.ServerTime) && !msg.HasTag("time") {
|
||||||
|
Loading…
Reference in New Issue
Block a user