forked from mystiq/hydrogen-web
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.
|
||||
*/
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue