freedom-social-xmpp
Advanced tools
Comparing version 0.3.13 to 0.3.14
@@ -284,6 +284,7 @@ /*jslint white:true,sloppy:true */ | ||
messageType = status === 'ONLINE_WITH_OTHER_APP' ? 'chat' : 'normal', | ||
message = new window.XMPP.Element('message', { | ||
stanza = new window.XMPP.Element('message', { | ||
to: to, | ||
type: messageType | ||
}).c('body'), | ||
}), | ||
message = stanza.c('body'), | ||
body; | ||
@@ -297,2 +298,6 @@ | ||
message.t(JSON.stringify(body)); | ||
stanza.c('nos:skiparchive', { | ||
value: 'true', | ||
'xmlns:nos' : 'google:nosave' | ||
}); | ||
} else { | ||
@@ -309,2 +314,3 @@ body = ''; | ||
try { | ||
@@ -311,0 +317,0 @@ this.client.send(message); |
{ | ||
"name": "freedom-social-xmpp", | ||
"description": "XMPP Social provider for freedomjs", | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"homepage": "http://freedomjs.org", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -284,6 +284,7 @@ /*jslint white:true,sloppy:true */ | ||
messageType = status === 'ONLINE_WITH_OTHER_APP' ? 'chat' : 'normal', | ||
message = new window.XMPP.Element('message', { | ||
stanza = new window.XMPP.Element('message', { | ||
to: to, | ||
type: messageType | ||
}).c('body'), | ||
}), | ||
message = stanza.c('body'), | ||
body; | ||
@@ -297,2 +298,6 @@ | ||
message.t(JSON.stringify(body)); | ||
stanza.c('nos:skiparchive', { | ||
value: 'true', | ||
'xmlns:nos' : 'google:nosave' | ||
}); | ||
} else { | ||
@@ -309,2 +314,3 @@ body = ''; | ||
try { | ||
@@ -311,0 +317,0 @@ this.client.send(message); |
@@ -26,3 +26,3 @@ { | ||
"recv-err": {"type": "event", "value": {"message": "string"}}, | ||
"recv-message": {"type": "event", "value": {"message": "string", "from": {"userId": "string"}}}, | ||
"recv-message": {"type": "event", "value": {"message": "string", "from": {"clientId": "string"}}}, | ||
"recv-buddylist": {"type": "event", "value": "object"}, | ||
@@ -29,0 +29,0 @@ "recv-uid": {"type": "event", "value": "string"} |
@@ -26,3 +26,3 @@ { | ||
"recv-err": {"type": "event", "value": {"message": "string"}}, | ||
"recv-message": {"type": "event", "value": {"message": "string", "from": {"userId": "string"}}}, | ||
"recv-message": {"type": "event", "value": {"message": "string", "from": {"clientId": "string"}}}, | ||
"recv-buddylist": {"type": "event", "value": "object"}, | ||
@@ -29,0 +29,0 @@ "recv-uid": {"type": "event", "value": "string"} |
@@ -108,3 +108,4 @@ /*jslint sloppy:true */ | ||
if (this.userList[userId]) { | ||
buddylist[userId] = this.userList[userId]; | ||
buddylist[k] = this.clientList[k]; | ||
buddylist[k].name = this.userList[userId].name; | ||
} | ||
@@ -111,0 +112,0 @@ } |
@@ -36,4 +36,4 @@ /*globals freedom, console, self*/ | ||
return buddylistEntry.name && buddylistEntry.name !== buddylistEntry.userId ? | ||
buddylistEntry.name + ' (' + buddylistEntry.userId + ')' : | ||
buddylistEntry.userId; | ||
buddylistEntry.name + ' (' + buddylistEntry.clientId + ')' : | ||
buddylistEntry.clientId; | ||
} | ||
@@ -81,4 +81,4 @@ | ||
// Show the name instead of the userId, if it's available. | ||
var userId = data.from.userId, | ||
displayName = buddylist[userId].name || userId, | ||
var clientId = data.from.clientId, | ||
displayName = buddylist[clientId].name || clientId, | ||
message = displayName + ": " + data.message; | ||
@@ -118,3 +118,3 @@ appendLog(document.createTextNode(message)); | ||
appendLog(document.createTextNode("You: " + text)); | ||
chatClient.send(activeBuddylistEntry.userId, text); | ||
chatClient.send(activeBuddylistEntry.clientId, text); | ||
} | ||
@@ -121,0 +121,0 @@ }; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
888702
27122
12