diff --git a/src/domain/session/leftpanel/RoomTileViewModel.js b/src/domain/session/leftpanel/RoomTileViewModel.js index eebea618..e901e17d 100644 --- a/src/domain/session/leftpanel/RoomTileViewModel.js +++ b/src/domain/session/leftpanel/RoomTileViewModel.js @@ -15,6 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ +import {getIdentifierColorNumber} from "../../avatar.js"; import {BaseTileViewModel} from "./BaseTileViewModel.js"; export class RoomTileViewModel extends BaseTileViewModel { @@ -75,6 +76,10 @@ export class RoomTileViewModel extends BaseTileViewModel { return timeDiff; } + get avatarColorNumber() { + return getIdentifierColorNumber(this._room.avatarColorId); + } + get isUnread() { return this._room.isUnread; }