get mine(): boolean {
return (
- UserService.Instance.localUserView &&
- UserService.Instance.localUserView.person.id ==
+ UserService.Instance.myUserInfo &&
+ UserService.Instance.myUserInfo.local_user_view.person.id ==
this.props.private_message_view.creator.id
);
}
handlePrivateMessageCreate(message: PrivateMessageView) {
if (
- UserService.Instance.localUserView &&
- message.creator.id == UserService.Instance.localUserView.person.id
+ UserService.Instance.myUserInfo &&
+ message.creator.id ==
+ UserService.Instance.myUserInfo.local_user_view.person.id
) {
this.state.showReply = false;
this.setState(this.state);