Skip to content

Commit ff8bc1c

Browse files
authored
Merge pull request element-hq#5053 from vector-im/dbkr/3pid_invite_update_when_joined
Fix test for new behaviour of 'joining' flag
2 parents 26c8d23 + c32e736 commit ff8bc1c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎test/app-tests/joining.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ describe('joining a room', function () {
176176

177177
return Promise.delay(1);
178178
}).then(() => {
179-
// We've joined, expect this to false
180-
expect(roomView.state.joining).toBe(false);
179+
// NB. we don't expect the 'joining' flag to reset at any point:
180+
// it will stay set and we observe whether we have Room object for
181+
// the room and whether our member event shows we're joined.
181182

182183
// now send the room down the /sync pipe
183184
httpBackend.when('GET', '/sync').

0 commit comments

Comments
 (0)