Browse Source

fix includePhotoUrl if custom photo but no main photo

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
d7a9b90da2
  1. 4
      dist/src/network/send.js
  2. 2
      dist/src/network/send.js.map
  3. 4
      src/network/send.ts

4
dist/src/network/send.js

@ -171,8 +171,8 @@ function newmsg(type, chat, sender, message, isForwarded) {
if (!isForwarded && includeAlias && chat.myAlias) {
aliasToInclude = chat.myAlias;
}
const includePhotoUrl = sender && sender.photoUrl && !sender.privatePhoto && chat && chat.type === constants_1.default.chat_types.tribe;
let photoUrlToInclude = sender.photoUrl;
const includePhotoUrl = sender && !sender.privatePhoto && chat && chat.type === constants_1.default.chat_types.tribe;
let photoUrlToInclude = sender.photoUrl || '';
if (!isForwarded && includePhotoUrl && chat.myPhotoUrl) {
photoUrlToInclude = chat.myPhotoUrl;
}

2
dist/src/network/send.js.map

File diff suppressed because one or more lines are too long

4
src/network/send.ts

@ -163,8 +163,8 @@ export function newmsg(type, chat, sender, message, isForwarded:boolean){
if(!isForwarded && includeAlias && chat.myAlias) {
aliasToInclude = chat.myAlias
}
const includePhotoUrl = sender && sender.photoUrl && !sender.privatePhoto && chat && chat.type===constants.chat_types.tribe
let photoUrlToInclude = sender.photoUrl
const includePhotoUrl = sender && !sender.privatePhoto && chat && chat.type===constants.chat_types.tribe
let photoUrlToInclude = sender.photoUrl || ''
if(!isForwarded && includePhotoUrl && chat.myPhotoUrl) {
photoUrlToInclude = chat.myPhotoUrl
}

Loading…
Cancel
Save