Remove backwards compat function

pull/21833/head
Travis Ralston 2019-07-08 11:55:00 -06:00
parent 1f1a5b2aac
commit ab63e8bd04
2 changed files with 1 additions and 8 deletions

View File

@ -201,13 +201,6 @@ class MatrixClientPeg {
return matches[1];
}
/**
* @deprecated Use getHomeserverName() instead (correct spelling)
*/
getHomeServerName() {
return this.getHomeserverName();
}
_createClient(creds: MatrixClientCreds) {
const aggregateRelations = SettingsStore.isFeatureEnabled("feature_reactions");
const enableEdits = SettingsStore.isFeatureEnabled("feature_message_editing");

View File

@ -145,7 +145,7 @@ module.exports = React.createClass({
// too. If it's changed, appending to the list will corrupt it.
const my_next_batch = this.nextBatch;
const opts = {limit: 20};
if (my_server != MatrixClientPeg.getHomeServerName()) {
if (my_server != MatrixClientPeg.getHomeserverName()) {
opts.server = my_server;
}
if (this.state.instanceId) {