fix: name for join
This commit is contained in:
parent
0a657c02d7
commit
eb46f3a591
|
@ -35,7 +35,11 @@ export default function Chat() {
|
|||
return;
|
||||
}
|
||||
if (!hasChannel && validateChannel(channel)) {
|
||||
dispatch(submitJoin({channel: channel.toLowerCase(), id: user.id}));
|
||||
dispatch(submitJoin({
|
||||
channel: channel.toLowerCase(),
|
||||
id: user.id,
|
||||
name: '/r/anonymous' === channel.toLowerCase() ? 'anonymous' : user.redditUsername,
|
||||
}));
|
||||
}
|
||||
if (hasChannel) {
|
||||
window.document.title = `${channel} | reddichat`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user