mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 14:43:51 +01:00
Quick fix to support array of room aliases
This commit is contained in:
parent
2f52e8ee18
commit
7371e68f55
1 changed files with 3 additions and 2 deletions
|
@ -71,9 +71,10 @@ angular.module('RoomsController', ['matrixService', 'mFileInput', 'mFileUpload',
|
||||||
// use the existing alias from storage
|
// use the existing alias from storage
|
||||||
data[i].room_alias = alias;
|
data[i].room_alias = alias;
|
||||||
}
|
}
|
||||||
else if (data[i].room_alias) {
|
else if (data[i].aliases && data[i].aliases[0]) {
|
||||||
// save the mapping
|
// save the mapping
|
||||||
matrixService.createRoomIdToAliasMapping(data[i].room_id, data[i].room_alias);
|
// TODO: select the smarter alias from the array
|
||||||
|
matrixService.createRoomIdToAliasMapping(data[i].room_id, data[i].aliases[0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// last resort use the room id
|
// last resort use the room id
|
||||||
|
|
Loading…
Reference in a new issue