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

disable gallery/document links for profiles without a chat #708

Merged
merged 1 commit into from
May 14, 2020

Conversation

r10s
Copy link
Member

@r10s r10s commented May 14, 2020

this pr disables the gallery/document links for profiles without a chat (they can be opened from new chat -> swipe contact without a chat -> info)

already in the past, the gallery was only opened for context.getChatIdByContactId(), not for the given chatId, this pr always sets the used chatId to context.getChatIdByContactId() - and makes the chatId for the ContactDetailsViewController superfluous (the chat-details shown along with the contact always belong to the one-to-one-chat by nature, never to some group)

fixes #706

…remove superfluous chatId parameter from ContactDetailViewController
Copy link
Contributor

@nayooti nayooti left a comment

Choose a reason for hiding this comment

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

Looks good!

@r10s r10s merged commit f45d176 into master May 14, 2020
@r10s r10s deleted the disable-gallery-link branch May 14, 2020 20:59
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.

gallery/documents links not useful if there is not chat
2 participants