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

fix: chat scrolling up on quoting sometimes #4529

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Jan 21, 2025

Closes #3763 (again).
See #3763 (comment).
Previous supposed fix: #4119.

Apparently the bug came back after the recent React upgrade, which was introduced in 1.51.0, so the bug is a regression.

I was unable to reproduce the bug on the Windows preview build from this MR.

Closes #3763
(again).
See #3763 (comment).
Previous supposed fix: #4119.

Apparently the bug came back after the recent React upgrade.
Copy link
Member

@nicodh nicodh left a comment

Choose a reason for hiding this comment

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

Reviewed by testing

@WofWca WofWca merged commit 7a968b6 into main Jan 22, 2025
12 of 14 checks passed
@WofWca WofWca deleted the wofwca/fix-chat-scroll-up-on-draft-quote branch January 22, 2025 13:11
WofWca added a commit that referenced this pull request Jan 24, 2025
The bug was introduced in 7a968b6.
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
WofWca added a commit that referenced this pull request Jan 24, 2025
The bug was introduced in 7a968b6.
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
WofWca added a commit that referenced this pull request Jan 24, 2025
The bug was introduced in 7a968b6
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
WofWca added a commit that referenced this pull request Jan 25, 2025
This could cause the message list to not update on some events,
but I have not seen a concrete example.

The bug was introduced in 7a968b6
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
WofWca added a commit that referenced this pull request Jan 25, 2025
This cause the message list to be empty when the chat gets opened,
and not update on some events.

Reproduction steps are roughly as follows:
1. Create two accounts
2. On Alice, send ~20 messages to Bob.
3. Switch to Bob's account and open the chat with Alice.
  Do not scroll to bottom.
4. Switch to Alice account and send another message to Bob.
5. Switch to Bob's account and open the chat with Alice.

You will see the `Failed to load message Msg#0 for account` error
in the console and the chat will be empty.

The bug was introduced in 7a968b6
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
WofWca added a commit that referenced this pull request Jan 25, 2025
This cause the message list to be empty when the chat gets opened,
and not update on some events.

Reproduction steps are roughly as follows:
1. Create two accounts
2. On Alice, send ~20 messages to Bob.
3. Switch to Bob's account and open the chat with Alice.
  Do not scroll to bottom.
4. Switch to Alice account and send another message to Bob.
5. Switch to Bob's account and open the chat with Alice.

You will see the `Failed to load message Msg#0 for account` error
in the console and the chat will be empty.

The bug was introduced in 7a968b6
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
WofWca added a commit that referenced this pull request Jan 25, 2025
This sometimes causes the message list to be empty
when the chat gets opened, and not update on some events.

Reproduction steps are roughly as follows:
1. Create two accounts
2. On Alice, send ~20 messages to Bob.
3. Switch to Bob's account and open the chat with Alice.
  Do not scroll to bottom.
4. Switch to Alice account and send another message to Bob.
5. Switch to Bob's account and open the chat with Alice.

You will see the `Failed to load message Msg#0 for account` error
in the console and the chat will be empty.

The bug was introduced in 7a968b6
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
WofWca added a commit that referenced this pull request Jan 25, 2025
This sometimes causes the message list to be empty
when the chat gets opened, and not update on some events.

Reproduction steps are roughly as follows:
1. Create two accounts
2. On Alice, send ~20 messages to Bob.
3. Switch to Bob's account and open the chat with Alice.
  Do not scroll to bottom.
4. Switch to Alice account and send another message to Bob.
5. Switch to Bob's account and open the chat with Alice.

You will see the `Failed to load message Msg#0 for account` error
in the console and the chat will be empty.

The bug was introduced in 7a968b6
(#4529).

The added `messageId > C.DC_MSG_ID_LAST_SPECIAL` in the first `if`
is purely for consistency and performance.
It's the second one that matters.
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.

Typing a multi-line message makes chat scroll up (then you have to scroll to see new messages)
2 participants