From 3a3ddbf7c418d0af9dde13a2a7b1617df65ff945 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 22 May 2020 18:10:30 -0600 Subject: [PATCH] Add missing documentation --- src/components/views/rooms/RoomTile2.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomTile2.tsx b/src/components/views/rooms/RoomTile2.tsx index e23b17a726..8b1beee713 100644 --- a/src/components/views/rooms/RoomTile2.tsx +++ b/src/components/views/rooms/RoomTile2.tsx @@ -94,11 +94,12 @@ export default class RoomTile2 extends React.Component { // XXX: This is a bit of an awful-looking hack. We should probably be using state for // this, but instead we're kinda forced to either duplicate the code or thread a variable - // through the code paths. This feels like the least evil + // through the code paths. This feels like the least evil option. private get roomIsInvite(): boolean { return getEffectiveMembership(this.props.room.getMyMembership()) === EffectiveMembership.Invite; } + // TODO: Make use of this function when the notification state needs updating. private updateNotificationState() { this.setState({notificationState: this.getNotificationState()}); }