Kim Alvefur
126834ffca
mod_presence: Send unavailable presence in current thread run
...
`session:dispatch_stanza(pres)` enqueues processing of the stanza in the
sessions async thread, but becasue the entire stream close handling is
now in that thread it would process the presence after the stream and
session was completely closed, leading to weird errors "sent to a
resting session".
We call core_process_stanza() since this is what :dispatch_stanza calls
in the end.
6 years ago
Kim Alvefur
9fcef682cb
mod_presence: Advertise support for Subscription Pre-Approval
...
RFC 6121 ?3.4 says:
> If a server supports subscription pre-approvals, then it MUST
> advertise the following stream feature during stream negotiation.
The feature itself (#686 ) was added in f0e9e5bda415
6 years ago
Kim Alvefur
64ccf28f85
mod_presence: Ignore an unused variable [luacheck]
...
Not sure if it should be unused, hence the TODO
6 years ago
Matthew Wild
2de609cb9b
rostermanager, mod_presence: Support for subscription preapproval ( fixes #686 )
6 years ago
Kim Alvefur
47f5f3043d
mod_presence: Revert empty 'to' attribute of presence before presence/initial event ( fixes #1296 )
7 years ago
Kim Alvefur
70bf4ef542
mod_presence: Use get_child_text on priority child element ( fixes #552 )
9 years ago
Kim Alvefur
680a633e0c
mod_presence: No need to overwrite index 1 since it's set on the line below
9 years ago
Kim Alvefur
b1235c60a7
Fix spelling throughout the codebase [codespell]
8 years ago
Kim Alvefur
ee8f6f3602
mod_presence: Ignore unused argument but make note of its use elsewhere [luacheck]
8 years ago
Kim Alvefur
6a7ceb0139
mod_presence: Remove unused local [luacheck]
8 years ago
Kim Alvefur
a3fb1984df
mod_presence: Send probe once subscribed ( fixes #794 )
9 years ago
Anton Shestakov
25dda5941d
mod_presence: remove unused one-letter loop variable [luacheck]
10 years ago
Kim Alvefur
5147175a97
mod_presence: Re-probe for contacts presence after outgoing 'subscribed' ( fixes #673 )
10 years ago
Kim Alvefur
f009c36365
mod_presence: Fix variable name
10 years ago
Kim Alvefur
ecb98149c9
mod_presence: Construct a 'from' JID when roster items are removed outside of a session
10 years ago
Kim Alvefur
c4b8924efa
mod_presence: Send unavailable presence when roster items are removed ( fixes #331 )
10 years ago
Kim Alvefur
c841d558f6
mod_presence, mod_roster: Move responsibility for sending presence on roster removal to mod_presence
10 years ago
Kim Alvefur
e93392fd66
mod_presence: Fix partial rename
10 years ago
Kim Alvefur
cedbb60261
mod_presence: Move function for selecting "top resources" into a new util.presence
10 years ago
Kim Alvefur
a574e5c917
mod_presence: Use type-specific config API for boolean 'ignore_presence_priority' option
10 years ago
Kim Alvefur
ea346342bd
rostermanager, mod_roster, mod_presence: Move pending roster items to roster metadata field
11 years ago
Kim Alvefur
f56c435f18
mod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer stanza:get_child APIs and optimize away some table lookups
12 years ago
Kim Alvefur
86e514038e
mod_presence: Fire a presence/initial event on initial presence
12 years ago
Kim Alvefur
3b2bde4646
mod_presence: Move presence/initial event to correct place so it actually fires
12 years ago
Florian Zeitz
4b618a8727
Remove all trailing whitespace
13 years ago
Matthew Wild
a9744cfc99
mod_presence: Remove some unused variables
13 years ago
Kim Alvefur
98dea85ed2
mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
13 years ago
Kim Alvefur
b3ae244fe8
mod_presence: Put a timestamp on presence we store for probes
13 years ago
Kim Alvefur
1dad7f3278
mod_presence: Fix indentation
13 years ago
Kim Alvefur
aa3cfe1ea0
mod_presence: Handle older boolean subscription request data (thanks Martin)
7 years ago
Kim Alvefur
e984432ca4
mod_presence: Remove unnecessary stanza clone call
7 years ago
Matthew Wild
38b328ad1b
rostermanager, mod_presence: Store stanza for incoming subscription requests ( fixes #689 ) (thanks Zash, Ge0rG)
7 years ago
Waqas Hussain
955e1b6695
mod_presence, rostermanager: Bring outbound subscription cancellation in line with RFC6121.
14 years ago
Kim Alvefur
790e0bb9b4
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
14 years ago
Matthew Wild
e808645b53
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
14 years ago
Matthew Wild
41bab931e0
mod_presence: Handle nil disconnection error
14 years ago
Robert Hoelz
32c092ae0e
mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
15 years ago
Robert Hoelz
de4b6ceb33
core.offlinemanager, mod_message, mod_presence: Removed core.offlinemanager in favor of mod_offline.
15 years ago
Matthew Wild
cda0d3e598
mod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)
15 years ago
Matthew Wild
037b82e6f0
mod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)
15 years ago
Robert Hoelz
f60a52f713
mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
15 years ago
Robert Hoelz
7bfadb35ed
core.offlinemanager, mod_message, mod_presence: Removed core.offlinemanager in favor of mod_offline.
15 years ago
Waqas Hussain
b7e51a203d
Monster whitespace commit (beware the whitespace monster).
15 years ago
Robert Hoelz
c74e3999fb
Don't send offline messages to resource with negative priorities
15 years ago
Waqas Hussain
fdb9749df9
mod_presence: Fixed a traceback on outgoing subscriptions from offline users.
16 years ago
Waqas Hussain
c7af4d8bf5
mod_presence: Fixed a traceback.
16 years ago
Waqas Hussain
c04a3c71c7
mod_presence: Enable firing of pre-events for all outbound stanzas, and switching completely to core_post_stanza.
16 years ago
Waqas Hussain
5f4b882a77
mod_presence: Enable firing of pre-events for probes.
16 years ago
Waqas Hussain
dfb8c6b98c
mod_presence: Don't stop pre-event for outgoing probes.
16 years ago
Waqas Hussain
a5f32b09de
mod_presence: Small refactoring.
16 years ago