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

PLAT-25849 Message edits #93

Merged
merged 6 commits into from
Aug 5, 2024
Merged

PLAT-25849 Message edits #93

merged 6 commits into from
Aug 5, 2024

Conversation

JJTech0130
Copy link
Contributor

Things with msgconv are starting to get a little bit hairy, should probably rewrite that whole thing...
In any case, would really appreciate a review @tulir, some of that edit part stuff I think is not quite right.

`facebookgo` is used for dual-platform mode to make development easier, should be changed back to `meta` in the future
@JJTech0130 JJTech0130 requested a review from tulir July 31, 2024 03:37
@JJTech0130 JJTech0130 force-pushed the jamesgill/plat-25849 branch from 24ac1b9 to c6480fe Compare July 31, 2024 14:41
Comment on lines 60 to 68
mentions, err := rawMentions.Parse()
if err != nil {
zerolog.Ctx(ctx).Err(err).Msg("Failed to parse mentions")

var mentions *socket.Mentions

if rawMentions != nil {
mentionsP, err := rawMentions.Parse()
if err != nil {
zerolog.Ctx(ctx).Err(err).Msg("Failed to parse mentions")
}
mentions = &mentionsP
Copy link
Member

Choose a reason for hiding this comment

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

It would be easier to change MentionData.Parse to return nil if the input is nil than add a whole if like this

@tulir tulir merged commit 86bb449 into megabridge Aug 5, 2024
8 of 11 checks passed
@tulir tulir deleted the jamesgill/plat-25849 branch August 5, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants