adding channel support
This commit is contained in:
@@ -63,9 +63,9 @@ class NewTopicView extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
handleNewGroupSubmit(name, dataUrl, priv, tags) {
|
||||
handleNewGroupSubmit(name, dataUrl, priv, tags, isChannel) {
|
||||
HashNavigation.navigateTo(HashNavigation.removeUrlParam(window.location.hash, 'tab'));
|
||||
this.props.onCreateTopic(undefined, vcard(name, dataUrl), priv, tags);
|
||||
this.props.onCreateTopic(undefined, vcard(name, dataUrl), priv, tags, isChannel);
|
||||
}
|
||||
|
||||
handleGroupByID(topicName) {
|
||||
|
||||
@@ -1061,9 +1061,9 @@ class TinodeWeb extends React.Component {
|
||||
}
|
||||
|
||||
// Request to start a new topic. New P2P topic requires peer's name.
|
||||
handleNewTopicRequest(peerName, pub, priv, tags) {
|
||||
handleNewTopicRequest(peerName, pub, priv, tags, isChannel) {
|
||||
|
||||
const topicName = peerName || this.tinode.newGroupTopicName();
|
||||
const topicName = peerName || this.tinode.newGroupTopicName(isChannel);
|
||||
const params = {
|
||||
_topicName: topicName,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user