adding channel support

This commit is contained in:
or-else
2020-07-20 12:20:38 -07:00
parent 331dea37cf
commit 0f095ceeca
16 changed files with 111 additions and 46 deletions
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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,
};