pull/1658/head
parent
b64a720d99
commit
2c588131fc
@ -0,0 +1,14 @@ |
||||
Template.messageAttachment.helpers |
||||
fixCordova: (url) -> |
||||
if Meteor.isCordova and url?[0] is '/' |
||||
return Meteor.absoluteUrl().replace(/\/$/, '') + url |
||||
return url |
||||
|
||||
showImage: -> |
||||
if Meteor.user()?.settings?.preferences?.autoImageLoad is false and this.downloadImages? is not true |
||||
return false |
||||
|
||||
if Meteor.Device.isPhone() and Meteor.user()?.settings?.preferences?.saveMobileBandwidth and this.downloadImages? is not true |
||||
return false |
||||
|
||||
return true |
Loading…
Reference in new issue