mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Only attach profile if name is set.
This commit is contained in:
parent
3bf52c8f82
commit
f596c8125a
1 changed files with 2 additions and 3 deletions
|
@ -133,10 +133,9 @@ Message.prototype = {
|
||||||
proto.profileKey = this.profileKey;
|
proto.profileKey = this.profileKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.profile) {
|
if (this.profile && this.profile.name) {
|
||||||
const contact = new textsecure.protobuf.DataMessage.Contact();
|
const contact = new textsecure.protobuf.DataMessage.Contact();
|
||||||
if (this.profile.name)
|
contact.name = this.profile.name;
|
||||||
contact.name = this.profile.name;
|
|
||||||
proto.profile = contact;
|
proto.profile = contact;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue