--- a/coffee/contacts.coffee Sun Jan 01 14:26:30 2017 +0800
+++ b/coffee/contacts.coffee Sun Jan 01 14:41:31 2017 +0800
+class Tram.Entity extends Backbone.Model
+class Tram.Entities extends Backbone.Collection
class Tram.Contacts extends Backbone.Collection
--- a/coffee/index.coffee Sun Jan 01 14:26:30 2017 +0800
+++ b/coffee/index.coffee Sun Jan 01 14:41:31 2017 +0800
window.sidebarApp = new Tram.SidebarApp(el: $('[data-app="sidebar"]'), model: clientState)
window.progressApp = new Tram.ProgressApp(el: $('[data-app="progress"]'), model: clientState)
window.profiles = new Tram.Profiles()
+window.entities = new Tram.Entities()
contacts.on 'change:show', (model) ->
X.conn.disco.addFeature(Tram.NS.WEBRTC)
loadSettings(dSettings.resolve, dSettings.reject)
- loadCapsCache(dCaps.resolve, dCaps.reject)
+ loadEntityCache(dCache.resolve, dCache.reject)
getServerVersion(dVersion.resolve, dVersion.reject)
X.conn.roster.get(dRoster.resolve)
- $.when(dCaps).always ->
- getServerInfo(dInfo.resolve, dInfo.reject)
+ $.when(dCache).always ->
+ getServerEntity(dInfo.resolve, dInfo.reject)
if Strophe.NS.CARBONS in serverInfo.get('features')
$.when(dSettings, dVersion, dInfo, dRoster, dCarbons).always ->
X.sendPresence(status: 'Online', priority: 1)
+ entities.on('add change', saveEntityCache)
settings.on('change', saveSettings)
saveSettings = _(_saveSettings).debounce(1000)
-loadCapsCache = (doneCallback, failCallback) ->
- iq = $iq(type: 'get', id: X.conn.getUniqueId('capscache'))
+loadEntityCache = (doneCallback, failCallback) ->
+ iq = $iq(type: 'get', id: X.conn.getUniqueId('entity-cache'))
.c('query', xmlns: Strophe.NS.PRIVATE)
- .c('capscache', xmlns: Tram.NS.PRIVATE)
+ .c('entity-cache', xmlns: Tram.NS.PRIVATE)
- el = stanza.getElementsByTagName('capscache')[0]
+ el = stanza.getElementsByTagName('entity-cache')[0]
data = JSON.parse(el.firstChild.nodeValue)
- _(capscache).defaults(data)
X.conn.sendIQ(iq.tree(), okcb, failcb, Tram.config.iqTimeout)
-_saveCapsCache = (doneCallback, failCallback) ->
- payload = JSON.stringify(capscache)
- iq = $iq(type: 'set', id: X.conn.getUniqueId('capscache'))
+_saveEntityCache = (doneCallback, failCallback) ->
+ payload = JSON.stringify(entities.chain().filter((e) -> e.has('id')).map((e) -> e.toJSON()).value())
+ iq = $iq(type: 'set', id: X.conn.getUniqueId('entity-cache'))
.c('query', xmlns: Strophe.NS.PRIVATE)
- .c('capscache', xmlns: Tram.NS.PRIVATE).t(payload)
+ .c('entity-cache', xmlns: Tram.NS.PRIVATE).t(payload)
- console.warn("couldn't save caps cache", stanza)
+ console.warn("couldn't save entity cache", stanza)
X.conn.sendIQ(iq.tree(), okcb, failcb, Tram.config.iqTimeout)
-saveCapsCache = _(_saveCapsCache).debounce(1000)
+saveEntityCache = _(_saveEntityCache).debounce(1000)
type: if self then 'self' else 'contact'
contact.set('profile', getProfile(bjid))
+ if Strophe.getResourceFromJid(from)?
+ getClientEntity(contact, node, ver)
contact.chat = getChat(bjid)
contact.chat.collection.on 'add', (model) ->
contact.unset('callstate')
- if Strophe.getResourceFromJid(from)?
- getClientInfo(contact, node, ver)
-getClientInfo = (contact, node, ver) ->
+getClientEntity = (contact, node, ver) ->
- clientId = "#{ node }##{ ver }"
- if capscache[clientId]?
- return contact.set('features', capscache[clientId])
+ nodever = "#{ node }##{ ver }"
+ entity = entities.get(nodever)
+ contact.set('entity', entity)
+ contact.set('features', entity.get('features'))
+ entity = entities.add(id: nodever)
+ entity = entities.add(jid: jid)
+ contact.set('entity', entity)
+ type: el.getAttribute('type')
+ name: el.getAttribute('name')
+ category: el.getAttribute('category')
+ } for el in stanza.getElementsByTagName('identity'))
features = (el.getAttribute('var') for el in stanza.getElementsByTagName('feature'))
+ client: _(identities).findWhere(category: 'client')
contact.set('features', features)
- capscache[clientId] = features
console.warn("couldn't get client info", stanza)
- X.conn.disco.info(jid, clientId, okcb, failcb, Tram.config.iqTimeout)
+ X.conn.disco.info(jid, nodever, okcb, failcb, Tram.config.iqTimeout)
-getServerInfo = (doneCallback, failCallback) ->
+getServerEntity = (doneCallback, failCallback) ->
caps = X.conn.features.getElementsByTagNameNS(Strophe.NS.CAPS, 'c')[0]
node = caps?.getAttribute('node')
ver = caps?.getAttribute('ver')
- serverId = "#{ node }##{ ver }"
- if capscache[serverId]?
- serverInfo.set('features', capscache[serverId])
+ nodever = "#{ node }##{ ver }"
+ entity = entities.get(nodever)
+ serverInfo.set('entity', entity)
+ serverInfo.set('features', entity.get('features'))
+ entity = entities.add(id: nodever)
+ entity = entities.add(jid: jid)
+ serverInfo.set('entity', entity)
+ type: el.getAttribute('type')
+ name: el.getAttribute('name')
+ category: el.getAttribute('category')
+ } for el in stanza.getElementsByTagName('identity'))
features = (el.getAttribute('var') for el in stanza.getElementsByTagName('feature'))
+ client: _(identities).findWhere(category: 'client')
serverInfo.set('features', features)
- capscache[serverId] = features
console.warn("couldn't get server info", stanza)
- X.conn.disco.info(X.conn.domain, serverId, okcb, failcb, Tram.config.iqTimeout)
+ X.conn.disco.info(jid, nodever, okcb, failcb, Tram.config.iqTimeout)
--- a/js/contacts.js Sun Jan 01 14:26:30 2017 +0800
+++ b/js/contacts.js Sun Jan 01 14:41:31 2017 +0800
+ Tram.Entity = (function(superClass) {
+ extend(Entity, superClass);
+ return Entity.__super__.constructor.apply(this, arguments);
+ Entity.prototype.defaults = {
+ Tram.Entities = (function(superClass) {
+ extend(Entities, superClass);
+ return Entities.__super__.constructor.apply(this, arguments);
+ Entities.prototype.model = Tram.Entity;
+ })(Backbone.Collection);
Tram.Contacts = (function(superClass) {
extend(Contacts, superClass);
--- a/js/contacts.js.map Sun Jan 01 14:26:30 2017 +0800
+++ b/js/contacts.js.map Sun Jan 01 14:41:31 2017 +0800
- "mappings": ";AAAA;AAAA,MAAA;;;;;EAAM,IAAI,CAAC;;;;;;;sBACT,WAAA,GAAa;;sBACb,QAAA,GACE;MAAA,QAAA,EAAU,aAAV;MACA,IAAA,EAAM,SADN;;;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AD,EAAQ,UAAR;AACL,UAAA;MAAA,EAAA,GAAK,UAAU,CAAC,OAAX,CAAmB,KAAnB;MACL,KAAK,CAAC,IAAN,GAAiB,IAAA,IAAI,CAAC,WAAL,CAAiB;QAAA,KAAA,EAAO,KAAP;OAAjB;MACjB,EAAA,GAAK,KAAK,CAAC,IAAI,CAAC,MAAX,CAAA,CAAmB,CAAC;MACzB,IAAG,EAAA,KAAM,CAAT;eACE,IAAC,CAAA,GAAG,CAAC,OAAL,CAAa,EAAb,EADF;OAAA,MAAA;eAGE,IAAC,CAAA,GAAG,CAAC,QAAL,CAAA,CAAe,CAAC,EAAhB,CAAmB,EAAA,GAAK,CAAxB,CAA0B,CAAC,KAA3B,CAAiC,EAAjC,EAHF;;IAJK;;0BASP,MAAA,GAAQ,SAAC,UAAD,EAAa,OAAb;MACN,IAAG,CAAI,OAAO,CAAC,GAAf;eACE,UAAU,CAAC,IAAX,CAAgB,CAAA,SAAA,KAAA;iBAAA,SAAC,KAAD;YACd,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAf,CAAA;mBACA,KAAC,CAAA,GAAG,CAAC,MAAL,CAAY,KAAK,CAAC,IAAI,CAAC,EAAvB;UAFc;QAAA,CAAA,CAAA,CAAA,IAAA,CAAhB,EADF;;IADM;;;;KAdqB,QAAQ,CAAC;AA/JxC"
\ No newline at end of file
--- a/js/index.js Sun Jan 01 14:26:30 2017 +0800
+++ b/js/index.js Sun Jan 01 14:41:31 2017 +0800
// Generated by CoffeeScript 1.12.2
- var $form, _saveCapsCache, _saveSettings, connectfn, enableCSI, enableCarbons, getChat, getClientInfo, getContact, getProfile, getServerInfo, getServerVersion, getStamp, getText, loadCapsCache, loadSettings, onAnyError, onChatMessage, onChatState, onConnected, onDisconnected, onGetLast, onGetTime, onGetVersion, onPing, onPresence, onWebRTC, origTitle, saveCapsCache, saveSettings, sendMessage,
+ var $form, _saveEntityCache, _saveSettings, connectfn, enableCSI, enableCarbons, getChat, getClientEntity, getContact, getProfile, getServerEntity, getServerVersion, getStamp, getText, loadEntityCache, loadSettings, onAnyError, onChatMessage, onChatState, onConnected, onDisconnected, onGetLast, onGetTime, onGetVersion, onPing, onPresence, onWebRTC, origTitle, saveEntityCache, saveSettings, sendMessage,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
Strophe.addNamespace('CAPS', 'http://jabber.org/protocol/caps');
+ window.profiles = new Tram.Profiles();
- window.profiles = new Tram.Profiles();
+ window.entities = new Tram.Entities();
contacts.on('change:show', function(model) {
if (model.get('type') === 'self') {
onConnected = function() {
- var dCaps, dCarbons, dInfo, dRoster, dSettings, dVersion;
+ var dCache, dCarbons, dInfo, dRoster, dSettings, dVersion;
X.conn.addHandler(onPresence, null, 'presence');
X.conn.addHandler(onChatMessage, null, 'message', 'chat');
X.conn.addHandler(onChatState, Strophe.NS.CHATSTATES, 'message');
X.conn.disco.addFeature(Strophe.NS.XHTML_IM);
X.conn.disco.addFeature(Tram.NS.WEBRTC);
dSettings = $.Deferred();
loadSettings(dSettings.resolve, dSettings.reject);
- loadCapsCache(dCaps.resolve, dCaps.reject);
+ loadEntityCache(dCache.resolve, dCache.reject);
getServerVersion(dVersion.resolve, dVersion.reject);
X.conn.roster.get(dRoster.resolve);
- $.when(dCaps).always(function() {
- return getServerInfo(dInfo.resolve, dInfo.reject);
+ $.when(dCache).always(function() {
+ return getServerEntity(dInfo.resolve, dInfo.reject);
$.when(dInfo).always(function() {
+ entities.on('add change', saveEntityCache);
return settings.on('change', saveSettings);
saveSettings = _(_saveSettings).debounce(1000);
- loadCapsCache = function(doneCallback, failCallback) {
+ loadEntityCache = function(doneCallback, failCallback) {
- id: X.conn.getUniqueId('capscache')
+ id: X.conn.getUniqueId('entity-cache')
xmlns: Strophe.NS.PRIVATE
okcb = function(stanza) {
- el = stanza.getElementsByTagName('capscache')[0];
+ el = stanza.getElementsByTagName('entity-cache')[0];
if ((el != null ? el.firstChild : void 0) != null) {
data = JSON.parse(el.firstChild.nodeValue);
- _(capscache).defaults(data);
return typeof doneCallback === "function" ? doneCallback() : void 0;
return X.conn.sendIQ(iq.tree(), okcb, failcb, Tram.config.iqTimeout);
- _saveCapsCache = function(doneCallback, failCallback) {
+ _saveEntityCache = function(doneCallback, failCallback) {
var failcb, iq, okcb, payload;
- payload = JSON.stringify(capscache);
+ payload = JSON.stringify(entities.chain().filter(function(e) {
- id: X.conn.getUniqueId('capscache')
+ id: X.conn.getUniqueId('entity-cache')
xmlns: Strophe.NS.PRIVATE
okcb = function(stanza) {
return typeof doneCallback === "function" ? doneCallback() : void 0;
failcb = function(stanza) {
- console.warn("couldn't save caps cache", stanza);
+ console.warn("couldn't save entity cache", stanza);
return typeof failCallback === "function" ? failCallback() : void 0;
return X.conn.sendIQ(iq.tree(), okcb, failcb, Tram.config.iqTimeout);
- saveCapsCache = _(_saveCapsCache).debounce(1000);
+ saveEntityCache = _(_saveEntityCache).debounce(1000);
onAnyError = function(stanza) {
console.warn('got an error:', stanza, stanza.outerHTML);
type: self ? 'self' : 'contact'
contact.set('profile', getProfile(bjid));
+ if (Strophe.getResourceFromJid(from) != null) {
+ getClientEntity(contact, node, ver);
contact.chat = getChat(bjid);
contact.chat.collection.on('add', function(model) {
return contact.unset('callstate');
- if (Strophe.getResourceFromJid(from) != null) {
- getClientInfo(contact, node, ver);
- getClientInfo = function(contact, node, ver) {
- var clientId, failcb, jid, okcb;
+ getClientEntity = function(contact, node, ver) {
+ var entity, failcb, jid, nodever, okcb;
jid = contact.get('jid');
if ((node != null) && (ver != null)) {
- clientId = node + "#" + ver;
- if (capscache[clientId] != null) {
- return contact.set('features', capscache[clientId]);
+ nodever = node + "#" + ver;
+ entity = entities.get(nodever);
+ contact.set('entity', entity);
+ contact.set('features', entity.get('features'));
+ entity = entities.add({
+ entity = entities.add({
+ contact.set('entity', entity);
okcb = function(stanza) {
+ var el, features, identities;
+ identities = (function() {
+ var i, len, ref, results;
+ ref = stanza.getElementsByTagName('identity');
+ for (i = 0, len = ref.length; i < len; i++) {
+ type: el.getAttribute('type'),
+ name: el.getAttribute('name'),
+ category: el.getAttribute('category')
var i, len, ref, results;
ref = stanza.getElementsByTagName('feature');
- contact.set('features', features);
- if (clientId != null) {
- capscache[clientId] = features;
- return saveCapsCache();
+ client: _(identities).findWhere({
+ identities: identities,
+ return contact.set('features', features);
failcb = function(stanza) {
return console.warn("couldn't get client info", stanza);
- return X.conn.disco.info(jid, clientId, okcb, failcb, Tram.config.iqTimeout);
+ X.conn.disco.info(jid, nodever, okcb, failcb, Tram.config.iqTimeout);
- getServerInfo = function(doneCallback, failCallback) {
- var caps, failcb, node, okcb, serverId, ver;
+ getServerEntity = function(doneCallback, failCallback) {
+ var caps, entity, failcb, jid, node, nodever, okcb, ver;
caps = X.conn.features.getElementsByTagNameNS(Strophe.NS.CAPS, 'c')[0];
node = caps != null ? caps.getAttribute('node') : void 0;
ver = caps != null ? caps.getAttribute('ver') : void 0;
if ((node != null) && (ver != null)) {
- serverId = node + "#" + ver;
- if (capscache[serverId] != null) {
- serverInfo.set('features', capscache[serverId]);
+ nodever = node + "#" + ver;
+ entity = entities.get(nodever);
+ serverInfo.set('entity', entity);
+ serverInfo.set('features', entity.get('features'));
if (typeof doneCallback === "function") {
+ entity = entities.add({
+ entity = entities.add({
+ serverInfo.set('entity', entity);
okcb = function(stanza) {
+ var el, features, identities;
+ identities = (function() {
+ var i, len, ref, results;
+ ref = stanza.getElementsByTagName('identity');
+ for (i = 0, len = ref.length; i < len; i++) {
+ type: el.getAttribute('type'),
+ name: el.getAttribute('name'),
+ category: el.getAttribute('category')
var i, len, ref, results;
ref = stanza.getElementsByTagName('feature');
+ client: _(identities).findWhere({
+ identities: identities,
serverInfo.set('features', features);
- capscache[serverId] = features;
return typeof doneCallback === "function" ? doneCallback() : void 0;
failcb = function(stanza) {
console.warn("couldn't get server info", stanza);
return typeof failCallback === "function" ? failCallback() : void 0;
- return X.conn.disco.info(X.conn.domain, serverId, okcb, failcb, Tram.config.iqTimeout);
+ X.conn.disco.info(jid, nodever, okcb, failcb, Tram.config.iqTimeout);
onPresence = function(stanza) {
--- a/js/index.js.map Sun Jan 01 14:26:30 2017 +0800
+++ b/js/index.js.map Sun Jan 01 14:41:31 2017 +0800
- "mappings": ";AAAA;AAAA,MAAA,sYAAA;IAAA;;EAAA,OAAO,CAAC,YAAR,CAAqB,MAArB,EAA6B,iCAA7B;;EACA,OAAO,CAAC,YAAR,CAAqB,SAArB,EAAgC,oBAAhC;;EACA,OAAO,CAAC,YAAR,CAAqB,YAArB,EAAmC,uCAAnC;;EACA,OAAO,CAAC,YAAR,CAAqB,KAArB,EAA4B,gBAA5B;;EACA,OAAO,CAAC,YAAR,CAAqB,OAArB,EAA8B,gBAA9B;;EACA,OAAO,CAAC,YAAR,CAAqB,SAArB,EAAgC,oBAAhC;;EACA,OAAO,CAAC,YAAR,CAAqB,MAArB,EAA6B,gBAA7B;;EACA,OAAO,CAAC,YAAR,CAAqB,iBAArB,EAAwC,4BAAxC;;EACA,OAAO,CAAC,YAAR,CAAqB,SAArB,EAAgC,mBAAhC;;EACA,OAAO,CAAC,YAAR,CAAqB,MAArB,EAA6B,eAA7B;;EAGA,MAAM,CAAC,QAAP,GAAsB,IAAA,IAAI,CAAC,QAAL,CAAA;;EACtB,MAAM,CAAC,WAAP,GAAyB,IAAA,IAAI,CAAC,WAAL,CAAiB;IAAA,EAAA,EAAI,CAAA,CAAE,uBAAF,CAAJ;IAAgC,UAAA,EAAY,QAA5C;GAAjB;;EACzB,MAAM,CAAC,KAAP,GAAmB,IAAA,IAAI,CAAC,KAAL,CAAA;;EACnB,MAAM,CAAC,QAAP,GAAsB,IAAA,IAAI,CAAC,QAAL,CAAc;IAAA,EAAA,EAAI,CAAA,CAAE,oBAAF,CAAJ;IAA6B,UAAA,EAAY,KAAzC;GAAd;;EACtB,MAAM,CAAC,QAAP,GAAsB,IAAA,IAAI,CAAC,cAAL,CAAA;;EACtB,MAAM,CAAC,UAAP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