Notify the user whenever a new topic is created or received.
Static
Readonly
EVERYONE_Static
Readonly
GLUE_Retrieves the topic registry. Omit the add & remove functions from the public API. The model takes care of those things.
Share the given topic with the desired group.
Share the given topic with the desired persons.
Creates the default everyone topic if it does not exist.
Note: Access rights will be automatically given to the "leute everyone" group by the addTopicToRegistry hook, that listens for new Topic objects.
Creates the one.glue topic if it does not exist.
Note: Access rights will be automatically given to the "leute everyone" group by the addTopicToRegistry hook, that listens for new Topic objects.
Creates one to one topic (person to person)
Note: Access rights will be automatically given to the participants by the addTopicToRegistry hook, that listens for new Topic objects.
Optional
channelOwner: SHA256IdHash<Person>Optional. One of from
, to
or undefined (default)
Create a one to one topic id.
person id
person id
topicId for the one to one chat
Enter the topic room by the given topic channel id.
Get participants of a 1:1 topic.
Register listeners.
Return whether the topicId refers to the everyone chat or not.
Return whether the topicId refers to the one.glue chat or not.
Return whether the topicId refers to a 1:1 chat or not.
De-register the listeners.
Model that manages the creation of chat topics.