Added basic mode support with op/voice and userlist sorting
This commit is contained in:
parent
0c2250b268
commit
721971cbb3
8 changed files with 170 additions and 11 deletions
|
@ -14,7 +14,7 @@ var Chat = React.createClass({
|
|||
<MessageInput />
|
||||
<UserList />
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ function dispatchCommand(cmd, channel, server) {
|
|||
switch (params[0].toLowerCase()) {
|
||||
case 'join':
|
||||
if (params[1]) {
|
||||
channelActions.join(params[1], server);
|
||||
channelActions.join([params[1]], server);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ var UserList = React.createClass({
|
|||
var channel = this.state.channels[tab.server][tab.channel];
|
||||
if (channel) {
|
||||
users = _.map(channel.users, function(user) {
|
||||
return <p>{user}</p>;
|
||||
return <p>{user.renderName}</p>;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue