Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Re: Topic subscription

35 views
Skip to first unread message
Message has been deleted

Gene Sokolov

unread,
Jan 21, 2025, 1:52:49 AMJan 21
to tin...@googlegroups.com


On Mon, Jan 20, 2025 at 10:22 PM Yinebeb Tariku <yin...@gmail.com> wrote:
Hello Gene,

Two question for clarify:

1. Is there a way to check whether a user has subscribed or not to a topic? I see sending `sub` do either subscribe the user to the topic if not yet or attach to the current session.

Please consider reading the documentation first:
https://github.com/tinode/chat/blob/master/docs/API.md#me-topic
 
2. Does chaining message work as expected, for e.g. in `fnd`, what I missed here? 

{
"sub": {
"topic": "fnd",
"set": {
"desc": {
"public": {
"desc": "some-tag"
}
}
},
"get": {
"what": "sub"
}
}
}
The above payload has different result with the one `sub` to `fnd` followed by `set` then `get` sequentially.

 
You have your answer right there ^^^^. Why ask the question if you know the answer?
 
Thanks.

--
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tinode/1424a5c1-1db3-4206-9c2b-be1fa51686f0n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages