322:7dfdf32e8577
Anton Shestakov <av6@dwimlabs.net>, Sat, 14 Jul 2018 20:23:13 +0800
index: authorizing contact also adds it to the roster Maybe there are cases when this doesn't make sense, but so far this looks like the right thing to do.

previous change 308:bb6186df3db5

js/tram.js

Permissions: -rw-r--r--

Other formats: Feeds:
// Generated by CoffeeScript 1.12.7
(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
window.Tram = {
info: {
client: 'Tram IM',
version: '0.1',
url: 'https://bitbucket.org/av6/tram-im'
},
NS: {
PRIVATE: 'tram-im:private',
WEBRTC: 'tram-im:webrtc'
},
config: {
domain: location.hostname,
connectionURL: "wss://" + location.host + "/xmpp-websocket",
connectionParameters: {},
iceServers: [
{
urls: 'stun:stun.services.mozilla.com'
}, {
urls: 'stun:stun.l.google.com:19302'
}
],
iqTimeout: 5000,
inactiveTime: 60 * 1000
},
colors: {
show: {
chat: '#a959c5',
online: '#8cc14c',
away: '#faa732',
xa: '#da314b',
offline: '#777',
"default": '#00a8e6'
},
avatar: ['#f75782', '#d27b2b', '#a5902b', '#759d2b', '#2da46b', '#2fa196', '#319db4', '#4292f4', '#c16af4', '#f545cd']
}
};
window.Tram.ServerInfo = (function(superClass) {
extend(ServerInfo, superClass);
function ServerInfo() {
return ServerInfo.__super__.constructor.apply(this, arguments);
}
return ServerInfo;
})(Backbone.Model);
window.Tram.ClientState = (function(superClass) {
extend(ClientState, superClass);
function ClientState() {
return ClientState.__super__.constructor.apply(this, arguments);
}
ClientState.prototype.defaults = {
show: 'offline',
csi: 'active'
};
return ClientState;
})(Backbone.Model);
window.Tram.ClientSettings = (function(superClass) {
extend(ClientSettings, superClass);
function ClientSettings() {
return ClientSettings.__super__.constructor.apply(this, arguments);
}
ClientSettings.prototype.defaults = {
chatstates: true
};
return ClientSettings;
})(Backbone.Model);
}).call(this);
//# sourceMappingURL=tram.js.map