+ {createFavoriteButton(isFavorite, toggleFavorite)}
+ {createSetHeaderButton(channel)}
+ {!isMobileView && createNotificationPreferencesButton(channel, currentUser)}
+
+
+ );
+
return (
-
+
{pictures}
-
+
+ {channel.display_name}
+
+
,
- }}
+ id='intro_messages.group_message'
+ defaultMessage={'This is the start of your group message history with these teammates. '}
/>
{getGMIntroMessageSpecificPart(currentUserProfile, channelMembership)}
-
- {createNotificationPreferencesButton(channel, currentUserProfile)}
-
- {createSetHeaderButton(channel)}
-
+ {actionButtons}
);
}
@@ -185,7 +218,7 @@ function createGMIntroMessage(channel: Channel, centeredIntro: string, profiles:
id={channelIntroId}
className={'channel-intro ' + centeredIntro}
>
-
+
void,
+ teammate?: UserProfileType,
+ teammateName?: string,
+) {
const channelIntroId = 'channelIntro';
if (teammate) {
const src = teammate ? Utils.imageURLForUser(teammate.id, teammate.last_picture_update) : '';
@@ -207,6 +249,14 @@ function createDMIntroMessage(channel: Channel, centeredIntro: string, teammate?
setHeaderButton = createSetHeaderButton(channel);
}
+ const actionButtons = (
+
+ {createFavoriteButton(isFavorite, toggleFavorite)}
+ {setHeaderButton}
+ {pluggableButton}
+
+ );
+
return (
-
+
-
-
+
+
-
- {pluggableButton}
- {setHeaderButton}
-
+ {actionButtons}
);
}
@@ -249,22 +297,34 @@ function createDMIntroMessage(channel: Channel, centeredIntro: string, teammate?
id={channelIntroId}
className={'channel-intro ' + centeredIntro}
>
-
+ {createFavoriteButton(isFavorite, toggleFavorite)}
+ {setHeaderButton}
+ {createNotificationPreferencesButton(channel, currentUser)}
+
+ );
+ }
+
return (