From 639da85799654da0adea09cb43766ff36bdea4d5 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 23 Nov 2018 18:03:48 -0500 Subject: [PATCH] display self in user list --- app/components/ChannelList.js | 1 - app/components/Home.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/ChannelList.js b/app/components/ChannelList.js index b0e5752..ba78ea9 100644 --- a/app/components/ChannelList.js +++ b/app/components/ChannelList.js @@ -4,7 +4,6 @@ import List from '@material-ui/core/List'; import ChannelBox from './ChannelBox'; import { isContactCode } from '../utils/parsers'; - const ChannelBoxes = ({ channels }) => (
{channels.map((channel) => ( diff --git a/app/components/Home.js b/app/components/Home.js index 52c9b06..bc41182 100644 --- a/app/components/Home.js +++ b/app/components/Home.js @@ -217,7 +217,7 @@ export default class Home extends PureComponent { const msg = JSON.parse(JSON.parse(data.payload)[1][0]); const fromUser = data.data.sig; - if (msg.type === 'ping' && fromUser !== publicKey) { + if (msg.type === 'ping') { const user = this.addOrUpdateUserKey(fromUser, data.username); this.addUserToChannel(channelName, user); }