diff --git a/src/client/containers/Topbar/TopbarContainer.jsx b/src/client/containers/Topbar/TopbarContainer.jsx
index 1c26b1120..555a31849 100644
--- a/src/client/containers/Topbar/TopbarContainer.jsx
+++ b/src/client/containers/Topbar/TopbarContainer.jsx
@@ -108,6 +108,7 @@ class TopbarContainer extends React.Component {
}
onSocketUpdateUsers (data) {
+ delete data[this.props.sessionUser.username]
const count = size(data)
if (count !== this.activeUserCount) this.activeUserCount = count
}
@@ -229,7 +230,11 @@ class TopbarContainer extends React.Component {
-
+
)
diff --git a/src/client/containers/Topbar/onlineUserList.jsx b/src/client/containers/Topbar/onlineUserList.jsx
index 4a76f6445..be81df3a6 100644
--- a/src/client/containers/Topbar/onlineUserList.jsx
+++ b/src/client/containers/Topbar/onlineUserList.jsx
@@ -94,6 +94,7 @@ class OnlineUserListPartial extends React.Component {
{entries(this.activeUsers).map(([key, value]) => {
+ if (this.props.sessionUser && value.user._id === this.props.sessionUser._id) return
const image = value.user.image || 'defaultProfile.jpg'
return (
-
@@ -123,6 +124,7 @@ class OnlineUserListPartial extends React.Component {
{users.map(user => {
+ if (this.props.sessionUser && user._id === this.props.sessionUser._id) return
const image = user.image || 'defaultProfile.jpg'
return (
-
@@ -154,6 +156,7 @@ class OnlineUserListPartial extends React.Component {
}
OnlineUserListPartial.propTypes = {
+ sessionUser: PropTypes.object,
timezone: PropTypes.string.isRequired,
users: PropTypes.array.isRequired
}