Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XMPP XEP-0016: What is the difference between default privacy list and active privacy list?

Tags:

xmpp

I am developing a chat application and for that i was reading XMPP XEP-0016 for privacy settings. I am very confused between default list and active list. Which type of list should i use for privacy settings? I don't want to waste much time on this. Help me to get out of this.

like image 678
Jagveer Singh Rajput Avatar asked Apr 08 '14 09:04

Jagveer Singh Rajput


People also ask

What is Xep in XMPP?

A XEP of any type is in the Experimental state after it has been accepted by the XMPP Council and published by the XMPP Standards Foundation but before it has advanced within the standards process to a state of Active or Stable.

What is XMPP stream?

The Extensible Messaging and Presence Protocol (XMPP) is an application profile of the Extensible Markup Language (XML) that enables the near-real-time exchange of structured yet extensible data between any two or more network entities.


1 Answers

Well, it's not that obvious defined in XEP-0016, but there a few hints about the different semantics. For example XEP-16 Section 2 states that the extension is able to

Setting, changing, or declining the default list (i.e., the list that is active by default).

Further in 2.2 we find

The default list applies to the user as a whole, and is processed if there is no active list set for the target session/resource to which a stanza is addressed, or if there are no current sessions for the user.

To sum up: The default list is used as default, hence the name, if no other list is specified by the client when enabling privacy lists. The active list is the list currently enforced by the server and applied to the session.

like image 121
Flow Avatar answered Oct 01 '22 17:10

Flow