fix: send hello btn
parent
0f62bb1980
commit
257911529f
|
@ -74,16 +74,19 @@ const NewRoomIntro: React.FC = () => {
|
||||||
cli.sendEvent(roomId, EventType.RoomMessage, {
|
cli.sendEvent(roomId, EventType.RoomMessage, {
|
||||||
body: "👋",
|
body: "👋",
|
||||||
msgtype: "m.text",
|
msgtype: "m.text",
|
||||||
});
|
}, (new Date()).toString());
|
||||||
};
|
};
|
||||||
|
|
||||||
const sendHelloButton = !room.getLastActiveTimestamp() && (
|
const sendHelloButton = (!room.getLastActiveTimestamp()) && (
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
kind="primary_outline"
|
kind="primary_outline"
|
||||||
onClick={onSendHelloClick}
|
onClick={onSendHelloClick}
|
||||||
style={{ marginTop: "5px", fontSize: "30px" }}
|
style={{ marginTop: "5px", fontSize: "30px" }}
|
||||||
>
|
>
|
||||||
👋
|
👋
|
||||||
|
<span style={{ fontSize: '18px', paddingLeft: '15px' }}>
|
||||||
|
Say Hello
|
||||||
|
</span>
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue