display self in user list

This commit is contained in:
Iuri Matias 2018-11-23 18:03:48 -05:00
parent b66ba27bfa
commit 639da85799
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import List from '@material-ui/core/List';
import ChannelBox from './ChannelBox';
import { isContactCode } from '../utils/parsers';
const ChannelBoxes = ({ channels }) => (
<div style={{ marginBottom: '50%' }}>
{channels.map((channel) => (

View File

@ -217,7 +217,7 @@ export default class Home extends PureComponent<Props> {
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);
}