mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-13 16:23:31 -07:00
don't double-store messages users send to themselves
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user