Skip to content

Commit 8ab82b7

Browse files
authored
Merge pull request element-hq#8271 from vector-im/jryans/rm-team-server
Remove support for team servers
2 parents 3c0e875 + 2d360ea commit 8ab82b7

2 files changed

Lines changed: 0 additions & 36 deletions

File tree

‎README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ For a good example, see https://riot.im/develop/config.json
157157
1. `whitelistedHSUrls`: a list of HS URLs to not redact from the analytics
158158
1. `whitelistedISUrls`: a list of IS URLs to not redact from the analytics
159159
1. `siteId`: The Piwik Site ID to use when sending analytics to the Piwik server configured above
160-
1. `teamServerConfig`, `teamTokenMap`, `referralBaseUrl`: an obsolete precursor to communities
161-
with referral tracking; please ignore it.
162160
1. `welcomeUserId`: the user ID of a bot to invite whenever users register that can give them a tour
163161

164162

‎test/app-tests/loading.js‎

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -343,40 +343,6 @@ describe('loading:', function() {
343343
}).done(done, done);
344344
});
345345

346-
it("logs in correctly with a Riot Team Server", function() {
347-
sdk.setFetch(httpBackend.fetchFn); // XXX: ought to restore this!
348-
349-
httpBackend.when('GET', '/pushrules').respond(200, {});
350-
httpBackend.when('POST', '/filter').respond(200, { filter_id: 'fid' });
351-
352-
loadApp({
353-
config: {
354-
teamServerConfig: {
355-
teamServerURL: 'http://my_team_server',
356-
},
357-
},
358-
});
359-
360-
return Promise.delay(1).then(() => {
361-
// we expect a loading spinner while we log into the RTS
362-
assertAtLoadingSpinner(matrixChat);
363-
364-
httpBackend.when('GET', 'my_team_server/login').respond(200, {
365-
team_token: 'nom',
366-
});
367-
return httpBackend.flush();
368-
}).then(() => {
369-
return awaitSyncingSpinner(matrixChat);
370-
}).then(() => {
371-
// we got a sync spinner - let the sync complete
372-
return expectAndAwaitSync();
373-
}).then(() => {
374-
// once the sync completes, we should have a home page
375-
ReactTestUtils.findRenderedComponentWithType(
376-
matrixChat, sdk.getComponent('structures.HomePage'));
377-
});
378-
});
379-
380346
describe('/#/login link:', function() {
381347
beforeEach(function() {
382348
loadApp({

0 commit comments

Comments
 (0)