Skip to content

replaceRevive [nfc]: Fix a latent bug caused by a sketchy null check.#4463

Merged
gnprice merged 1 commit intozulip:masterfrom
chrisbobbe:pr-revive-fix-sketchy
Feb 5, 2021
Merged

replaceRevive [nfc]: Fix a latent bug caused by a sketchy null check.#4463
gnprice merged 1 commit intozulip:masterfrom
chrisbobbe:pr-revive-fix-sketchy

Conversation

@chrisbobbe
Copy link
Copy Markdown
Contributor

This is only latent because, so far, we only use
ImmutableMapNumKeys for state.messages. Greg confirms that it
would be very surprising if a message could have an ID of zero [1].

[1] https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/replaceRevive.20bug/near/1112480

This is only latent because, so far, we only use
`ImmutableMapNumKeys` for `state.messages`. Greg confirms that it
would be very surprising if a message could have an ID of zero [1].

[1] https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/replaceRevive.20bug/near/1112480
@chrisbobbe chrisbobbe requested a review from gnprice February 2, 2021 23:31
@gnprice
Copy link
Copy Markdown
Member

gnprice commented Feb 5, 2021

Merged, thanks!

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.

2 participants