Merge branch '174-browser-not-remembering-rooms-associated-with-a-guest-identity' into 'dev'
Some direct chat room tweaks Closes #174 See merge request keanuapp/keanuapp-weblite!68
This commit is contained in:
commit
e3eb76dcc1
1 changed files with 2 additions and 0 deletions
|
|
@ -703,6 +703,7 @@ export default {
|
|||
const createRoomOptions = {
|
||||
visibility: "private", // Not listed!
|
||||
preset: "private_chat",
|
||||
is_direct: true,
|
||||
initial_state: [
|
||||
{
|
||||
type: "m.room.encryption",
|
||||
|
|
@ -746,6 +747,7 @@ export default {
|
|||
*/
|
||||
isDirectRoomWith(room, userId) {
|
||||
if (
|
||||
room.getJoinRule() == "invite" &&
|
||||
room.selfMembership == "join" &&
|
||||
room.getInvitedAndJoinedMemberCount() == 2
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue