3
0
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:
Shivaram Lingamneni 2020-02-20 05:17:23 -05:00
parent fab0630180
commit 108ef3f424

View File

@ -1982,7 +1982,7 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
targetedItem.CfCorrespondent = tDetails.nickCasefolded
client.history.Add(targetedItem)
}
if tEphemeral {
if tEphemeral && client != user {
item.CfCorrespondent = details.nickCasefolded
user.history.Add(item)
}