-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Lightbox: Added Button to jump to current image within the conversation #7098
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
base: main
Are you sure you want to change the base?
Conversation
98b0a13 to
ac26daf
Compare
| e164: message.get('source'), | ||
| reason: 'conversation_view.showLightBox', | ||
| })?.id || message.get('conversationId'); | ||
| const authorId = getAuthorId(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the problem here that the conversationId gets set as the authorId, the conversation id only gets set as fallback when "window.ConversationController.lookupOrCreate" is null/undefined.
But for this functionality I always need the conversationId, so I introduced a new variable "authorId" and replaced all previous usages with that one.
Is it intended that the variable got set like this in the first place and is there a gotcha that I haven't seen?
Lightbox: moved conversationId references to new authorId reference save authorId and conversationId separately
|
resolved conflicts (rebased to newest main) |
First time contributor checklist:
Contributor checklist:
My contribution is not related to translations.
My commits are in nice logical chunks with good commit messages
My changes are rebased on the latest
mainbranchA
npm run readyrun passes successfully (more about tests here)(Linting errros but in node_modules)
My changes are ready to be shipped to users
Description
Adds a "jump to conversation" button to the Media-Lightbox to jump to the position in the conversation where the image was used.