groupchat: implement correct user-to-channel mapping for join responses
commit31047cbb2e97f14a53c7309ea6c0ad686350b48b
authorStefan Becker <stefan.becker@nokia.com>
Mon, 20 Sep 2010 16:44:16 +0000 (20 19:44 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Mon, 20 Sep 2010 16:44:16 +0000 (20 19:44 +0300)
tree94415def1c8d1368f9c7a41c3a7b430e38f6c9dd
parent01f286c5f288ccc0e24cf64d3fc7e55288ba798a
groupchat: implement correct user-to-channel mapping for join responses

Each user (uib node) has a numeric ID attribute. Channels (chanib node) have
one or more user maps (aib node) with a key and value. The keys seem to be
magic numbers (normal user, channel operator?). The value is a comma separated
list of user IDs.

chatserver_response_join() now first processes the uib nodes to generate a map
and then the chanib nodes.

Based on the "guessed" meaning of the magic numbers we also set the chanop flag
for those users.
src/core/sipe-groupchat.c