Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
adf53caeff | ||
|
|
5863dcdf67 | ||
|
|
f77bee25ef | ||
|
|
c11328a064 | ||
|
|
d04de2fba0 |
No files matched your search
@@ -1,5 +1,10 @@
|
||||
# Cinny
|
||||
|
||||
[](https://github.com/ajbura/cinny/tree/dev)
|
||||
[](https://matrix.to/#/#cinny:matrix.org)
|
||||
[](https://twitter.com/@cinnyapp)
|
||||
[](https://opencollective.com/cinny)
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [About](#about)
|
||||
|
||||
@@ -70,7 +70,7 @@ function RoomVisibility({ roomId }) {
|
||||
|
||||
const noSpaceParent = currentState.getStateEvents('m.space.parent').length === 0;
|
||||
const mCreate = currentState.getStateEvents('m.room.create')[0]?.getContent();
|
||||
const roomVersion = Number(mCreate.room_version);
|
||||
const roomVersion = Number(mCreate?.room_version ?? 0);
|
||||
|
||||
const myPowerlevel = room.getMember(mx.getUserId())?.powerLevel || 0;
|
||||
const canChange = room.currentState.hasSufficientPowerLevelFor('state_default', myPowerlevel);
|
||||
|
||||
@@ -63,7 +63,7 @@ function JoinAliasContent({ term, requestClose }) {
|
||||
if (alias.startsWith('#')) {
|
||||
try {
|
||||
const aliasData = await mx.resolveRoomAlias(alias);
|
||||
via = aliasData?.servers || [];
|
||||
via = aliasData?.servers.slice(0, 3) || [];
|
||||
if (mountStore.getItem()) {
|
||||
setProcess(`Joining ${alias}...`);
|
||||
}
|
||||
|
||||
@@ -118,7 +118,6 @@ async function leave(roomId) {
|
||||
const isDM = initMatrix.roomList.directs.has(roomId);
|
||||
try {
|
||||
await mx.leave(roomId);
|
||||
await mx.forget(roomId);
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.room.LEAVE,
|
||||
roomId,
|
||||
|
||||
Reference in new issue
Block a user