Skip to content

Commit

Permalink
[web][native] Show relationship prompt in thick PERSONAL threads
Browse files Browse the repository at this point in the history
Summary: issue: [[https://linear.app/comm/issue/ENG-9188/relationship-buttons-dont-show-up | ENG-9188]]

Test Plan: Tested on web and native that buttons do show up in a chat with a user the current user is not friends with. Tested they don't show up in a chat with a user the usrrent user is friends with

Reviewers: tomek, kamil

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13267
  • Loading branch information
InkaAlicja committed Sep 12, 2024
1 parent 937dd44 commit f5bfcaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion native/chat/message-list.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ class MessageList extends React.PureComponent<Props, State> {
const { messageListData, startReached } = this.props;
const footer = startReached ? this.ListFooterComponent : undefined;
let relationshipPrompt = null;
if (this.props.threadInfo.type === threadTypes.GENESIS_PERSONAL) {
if (
this.props.threadInfo.type === threadTypes.GENESIS_PERSONAL ||
this.props.threadInfo.type === threadTypes.PERSONAL
) {
relationshipPrompt = (
<RelationshipPrompt
pendingPersonalThreadUserInfo={
Expand Down
5 changes: 4 additions & 1 deletion web/chat/chat-message-list.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ class ChatMessageList extends React.PureComponent<Props, State> {
const messages = messageListData.map(this.renderItem);

let relationshipPrompt = null;
if (threadInfo.type === threadTypes.GENESIS_PERSONAL) {
if (
threadInfo.type === threadTypes.GENESIS_PERSONAL ||
threadInfo.type === threadTypes.PERSONAL
) {
const otherMembers = threadOtherMembers(
threadInfo.members,
this.props.viewerID,
Expand Down

0 comments on commit f5bfcaa

Please sign in to comment.