Commit 52bbe024 authored by JC Brand's avatar JC Brand

Bugfix.

Differentiate more clearly between presence type and the show element
parent 00fc0f87
......@@ -1653,7 +1653,15 @@
sendPresence: function (type) {
var status_message = this.get('status_message'),
presence;
if (type === 'unavailable') {
// Most of these presence types are actually not explicitly sent,
// but I add all of them here fore reference and future proofing.
if ((type === 'unavailable') ||
(type === 'probe') ||
(type === 'error') ||
(type === 'unsubscribe') ||
(type === 'unsubscribed') ||
(type === 'subscribe') ||
(type === 'subscribed')) {
presence = $pres({'type':type});
} else {
if (type === 'online') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment