mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 11:36:32 -04:00
Move room alias/id mapping logic from matrixService to modelService.
This commit is contained in:
parent
33e9e0fb2d
commit
9d0efedaee
7 changed files with 72 additions and 74 deletions
|
@ -8,10 +8,6 @@ describe('mRoomName filter', function() {
|
|||
|
||||
// mocked services which return the test values above.
|
||||
var matrixService = {
|
||||
getRoomIdToAliasMapping: function(room_id) {
|
||||
return testAlias;
|
||||
},
|
||||
|
||||
config: function() {
|
||||
return {
|
||||
user_id: testUserId
|
||||
|
@ -33,7 +29,11 @@ describe('mRoomName filter', function() {
|
|||
return {
|
||||
current_room_state: testRoomState
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
getRoomIdToAliasMapping: function(room_id) {
|
||||
return testAlias;
|
||||
},
|
||||
};
|
||||
|
||||
beforeEach(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue