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
@@ -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,
};