fix: send hello btn

pull/27073/head
Badi Ifaoui 2024-01-16 12:54:49 +01:00 committed by Badi ifaoui
parent 0f62bb1980
commit 257911529f
1 changed files with 5 additions and 2 deletions

View File

@ -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>
);