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

Select chat after forwarding #4029

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Select chat after forwarding #4029

merged 3 commits into from
Jul 22, 2024

Conversation

nicodh
Copy link
Contributor

@nicodh nicodh commented Jul 12, 2024

fixes #3834

@nicodh nicodh requested a review from Simon-Laux July 12, 2024 21:45
@@ -45,15 +45,14 @@ export default function ForwardMessage(props: Props) {
const chat = await BackendRemote.rpc.getFullChatById(accountId, chatId)
onClose()
if (!chat.isSelfTalk) {
selectChat(accountId, chat.id)
Copy link
Member

@Simon-Laux Simon-Laux Jul 13, 2024

Choose a reason for hiding this comment

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

this is there because then you see the chat you are going to forward to, to prevent user mistakes.
In other words this behaviour of opening the chat before confirm and going back if you cancel is intentional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok - that should be worth a line of an explaining comment in the code :-)

So I have to find why the already opened chat is not scrolling down I guess

Copy link
Member

Choose a reason for hiding this comment

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

maybe calling select chat again could already work. or whatever happens when you click again on the chat in the chat-list if you have already selected the chat,

Copy link
Member

@Simon-Laux Simon-Laux left a comment

Choose a reason for hiding this comment

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

Code LGTM, but I didn't test it

@nicodh nicodh merged commit f888e82 into main Jul 22, 2024
6 checks passed
@nicodh nicodh deleted the fix-scroll-to-forwarded-message branch July 22, 2024 09:36
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.

chat does not scroll down after forwarding
2 participants