Public rooms: BF: when selecting Matrix, it should display Matrix, not matrix.org

This commit is contained in:
manuroe
2017-05-02 16:34:18 +02:00
parent 8d1d4cc735
commit 26eb6aa87a
@@ -73,7 +73,16 @@ double const kPublicRoomsDirectoryDataExpiration = 10;
}
else
{
directoryServerDisplayname = self.mxSession.matrixRestClient.credentials.homeServerName;
if (_includeAllNetworks)
{
// We display all rooms, included bridged ones, of the user's HS
directoryServerDisplayname = self.mxSession.matrixRestClient.credentials.homeServerName;
}
else
{
// We display only Matrix rooms of the user's HS
directoryServerDisplayname = [NSBundle mxk_localizedStringForKey:@"matrix"];
}
}
return directoryServerDisplayname;