Make the room color match up on the left panel, too.
This commit is contained in:
parent
97854423c4
commit
6527a0c677
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import {getIdentifierColorNumber} from "../../avatar.js";
|
||||||
import {BaseTileViewModel} from "./BaseTileViewModel.js";
|
import {BaseTileViewModel} from "./BaseTileViewModel.js";
|
||||||
|
|
||||||
export class RoomTileViewModel extends BaseTileViewModel {
|
export class RoomTileViewModel extends BaseTileViewModel {
|
||||||
|
@ -75,6 +76,10 @@ export class RoomTileViewModel extends BaseTileViewModel {
|
||||||
return timeDiff;
|
return timeDiff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get avatarColorNumber() {
|
||||||
|
return getIdentifierColorNumber(this._room.avatarColorId);
|
||||||
|
}
|
||||||
|
|
||||||
get isUnread() {
|
get isUnread() {
|
||||||
return this._room.isUnread;
|
return this._room.isUnread;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue