fix: always set correct chat_id
for DC_EVENT_REACTIONS_CHANGED
#5419
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this PR sets correct
chat_id
forDC_EVENT_REACTIONS_CHANGED
events.detection of correct chat-id went wrong sometimes somewhere deep inside
receive_imf()
, i tried the most less intrusive fix (changingis_probably_private_reply()
, see commit message for details) with probably few side effects, as changing too many things inreceive_imf()
with good chance raises other issues :)also, it the
is_probably_private_reply()
seems to be really the cause, changingreceive_imf()
in a way that withoutallow_creation
the correct chat is still returned may be an alternative, however, feels wrong as it works around somehow and seems not be needed otherwise. also, it would need a deeper understanding ofreceive_imf()
where i currently do not have the mindset for :)closes #5418