{ readReceiptButton }
+ { shareUserButton }
{ insertPillButton }
{ ignoreButton }
{ inviteUserButton }
diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js
index 1851e03383..e40c715052 100644
--- a/src/components/views/rooms/RoomHeader.js
+++ b/src/components/views/rooms/RoomHeader.js
@@ -149,6 +149,13 @@ module.exports = React.createClass({
dis.dispatch({ action: 'show_right_panel' });
},
+ onShareRoomClick: function(ev) {
+ const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
+ Modal.createTrackedDialog('share room dialog', '', ShareDialog, {
+ target: this.props.room,
+ });
+ },
+
_hasUnreadPins: function() {
const currentPinEvent = this.props.room.currentState.getStateEvents("m.room.pinned_events", '');
if (!currentPinEvent) return false;
@@ -379,6 +386,14 @@ module.exports = React.createClass({
;
}
+ let shareRoomButton;
+ if (this.props.inRoom) {
+ shareRoomButton =
+
+
+ ;
+ }
+
let rightPanelButtons;
if (this.props.collapsedRhs) {
rightPanelButtons =
@@ -400,6 +415,7 @@ module.exports = React.createClass({
{ settingsButton }
{ pinnedEventsButton }
+ { shareRoomButton }
{ manageIntegsButton }
{ forgetButton }
{ searchButton }