"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "js/views/contact_list_view.js" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

contact_list_view.js  (Signal-Desktop-1.35.2):contact_list_view.js  (Signal-Desktop-1.36.1)
/* global Whisper: false */ /* global Whisper: false */
/* global textsecure: false */ /* global textsecure: false */
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
(function() { (function() {
'use strict';
window.Whisper = window.Whisper || {}; window.Whisper = window.Whisper || {};
Whisper.ContactListView = Whisper.ListView.extend({ Whisper.ContactListView = Whisper.ListView.extend({
tagName: 'div', tagName: 'div',
itemView: Whisper.View.extend({ itemView: Whisper.View.extend({
tagName: 'div', tagName: 'div',
className: 'contact', className: 'contact',
templateName: 'contact', templateName: 'contact',
initialize(options) { initialize(options) {
this.ourNumber = textsecure.storage.user.getNumber(); this.ourNumber = textsecure.storage.user.getNumber();
skipping to change at line 33 skipping to change at line 31
render() { render() {
if (this.contactView) { if (this.contactView) {
this.contactView.remove(); this.contactView.remove();
this.contactView = null; this.contactView = null;
} }
this.contactView = new Whisper.ReactWrapperView({ this.contactView = new Whisper.ReactWrapperView({
className: 'contact-wrapper', className: 'contact-wrapper',
Component: window.Signal.Components.ContactListItem, Component: window.Signal.Components.ContactListItem,
props: { props: {
...this.model.cachedProps, ...this.model.format(),
onClick: this.showIdentity.bind(this), onClick: this.showIdentity.bind(this),
}, },
}); });
this.$el.append(this.contactView.el); this.$el.append(this.contactView.el);
return this; return this;
}, },
showIdentity() { showIdentity() {
if (this.model.isMe() || this.loading) { if (this.model.isMe() || this.loading) {
return; return;
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)