Skip to content

Commit

Permalink
fix: send hello btn
Browse files Browse the repository at this point in the history
  • Loading branch information
ifaouibadi committed Jan 16, 2024
1 parent 938f0b6 commit a7a17ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/views/rooms/NewRoomIntro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,19 @@ const NewRoomIntro: React.FC = () => {
cli.sendEvent(roomId, EventType.RoomMessage, {
body: "👋",
msgtype: "m.text",
});
}, (new Date()).toString());
};

const sendHelloButton = !room.getLastActiveTimestamp() && (
const sendHelloButton = (!room.getLastActiveTimestamp()) && (
<AccessibleButton
kind="primary_outline"
onClick={onSendHelloClick}
style={{ marginTop: "5px", fontSize: "30px" }}
>
👋
<span style={{ fontSize: '18px', paddingLeft: '15px' }}>
Say Hello
</span>
</AccessibleButton>
);

Expand Down

0 comments on commit a7a17ef

Please sign in to comment.