display self in user list
This commit is contained in:
parent
b66ba27bfa
commit
639da85799
|
@ -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) => (
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue