Closed jaylevin closed 6 years ago
If unsub
is true
in
leave := &pbx.ClientLeave {
Topic: topicID,
Unsub: unsub,
}
Then it's not a bug but an expected behaviour. The owner cannot hard-unsubscribe from a group. Either set unsub
to false
or transfer group ownership to someone else first.
Ah, that makes some sense, I was setting unsub=true
. Much appreciated!
Unable to catch error from {leave} message
Is this a bug report of a feature request?
Your environment
Steps to reproduce
Am I missing something here? The serve console logs that there is an error, but doesn't return anything for the error.
Expected behaviour
Error returned from
resp.Send(clientMessage)
should be the same as the one printed to the tinode server consolereplyLeaveUnsub: owner cannot unsubscribe
Actual behaviour
Error is
nil
Server-side log
2018/06/07 17:14:37 leave:<topic:"grphIYtXahrzz8" unsub:true > 2018/06/07 17:14:37 failed to unsub replyLeaveUnsub: owner cannot unsubscribe
Client-side log
2018/06/07 17:18:24 Error: <nil>
Any help would be much appreciated. Thanks