Skip to content

Commit

Permalink
Add general chat to public channels
Browse files Browse the repository at this point in the history
  • Loading branch information
heyrict committed Jun 23, 2019
1 parent 8d391cd commit 6f95df3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions react-boilerplate/app/containers/Chat/Channels.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from "styled-components";
import styled from 'styled-components';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
Expand All @@ -24,7 +24,7 @@ class Channels extends React.PureComponent {

this.state = {
content: '',
publicShown: false,
publicShown: true,
favShown: false,
createModalShown: false,
};
Expand Down
2 changes: 1 addition & 1 deletion react-boilerplate/app/containers/Chat/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const MINICHAT_GETID = 'app/Chat/MINICHAT_GETID';
export const ADD_FAVCHAN = 'app/Chat/ADD_FAVCHAN';
export const REMOVE_FAVCHAN = 'app/Chat/REMOVE_FAVCHAN';

export const PublicChannels = ['lobby'];
export const PublicChannels = ['lobby', '雑談'];

export const SET_DM_RECEIVER = 'app/Chat/SET_DM_RECEIVER';

Expand Down
6 changes: 6 additions & 0 deletions tools/initdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
name="lobby",
description="Description for lobby chat",
user=User.objects.first())

print("Creating ChatRoom: lobby")
ChatRoom.objects.create(
name="雑談",
description="Description for general chat",
user=User.objects.first())

0 comments on commit 6f95df3

Please sign in to comment.