mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
don't double-store messages users send to themselves
This commit is contained in:
parent
fab0630180
commit
108ef3f424
@ -1982,7 +1982,7 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
|
|||||||
targetedItem.CfCorrespondent = tDetails.nickCasefolded
|
targetedItem.CfCorrespondent = tDetails.nickCasefolded
|
||||||
client.history.Add(targetedItem)
|
client.history.Add(targetedItem)
|
||||||
}
|
}
|
||||||
if tEphemeral {
|
if tEphemeral && client != user {
|
||||||
item.CfCorrespondent = details.nickCasefolded
|
item.CfCorrespondent = details.nickCasefolded
|
||||||
user.history.Add(item)
|
user.history.Add(item)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user