Make the room color match up on the left panel, too.

This commit is contained in:
Danila Fedorin 2021-06-28 11:54:49 -07:00
parent 97854423c4
commit 6527a0c677

View file

@ -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;
}