ContactModal: Show contact's story ring, open correct story, close modal

This commit is contained in:
Scott Nonnenberg 2023-11-16 21:54:01 -08:00 committed by GitHub
parent 23ba382f04
commit 146b562c91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -191,9 +191,10 @@ export function ContactModal({
onClick={() => {
if (conversation && hasStories) {
viewUserStories({
conversationId: conversation.id,
conversationId: contact.id,
storyViewMode: StoryViewModeType.User,
});
hideContactModal();
} else {
setView(ContactModalView.ShowingAvatar);
}

View file

@ -36,7 +36,7 @@ const mapStateToProps = (state: StateType): PropsDataType => {
});
}
const hasStories = getHasStoriesSelector(state)(conversationId);
const hasStories = getHasStoriesSelector(state)(contactId);
return {
areWeASubscriber: getAreWeASubscriber(state),