Add option to create room/space

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura
2022-02-26 21:00:52 +05:30
parent 96fefc7ab3
commit b3189fc7ce
10 changed files with 365 additions and 208 deletions
@@ -200,11 +200,7 @@ function ProfileFooter({ roomId, userId, onRequestClose }) {
// Create new DM
try {
setIsCreatingDM(true);
await roomActions.create({
isEncrypted: true,
isDirect: true,
invite: [userId],
});
await roomActions.createDM(userId);
} catch {
if (isMountedRef.current === false) return;
setIsCreatingDM(false);