Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: Filter historical logs as well #377

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Nov 13, 2023

No description provided.

client/client.go Outdated
Comment on lines 879 to 882
gcID, err = c.GCIDByName(gcName)
if err != nil {
return err
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unneeded

uid is already gcID due to how this function is called. maybe this function should be renamed to ReadHistoryMessages

if gcName == "" {
filter, _ = c.shouldFilter(uid, nil, nil, nil, entry.Message)
} else {
userID, err := c.UIDByNick(entry.From)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renames/aliasing will break this but it cant be helped because of how logs are stored...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right I had considered that a while back when working on the original impl for the log history. Hrm maybe we can somehow store past correlated names in the db? But a whole can of worms then for a relatively minor improvement I suppose

@alexlyp alexlyp merged commit fcdbe65 into companyzero:master Nov 15, 2023
5 checks passed
@alexlyp alexlyp deleted the ayp_startup_filter branch November 15, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants