Use built-in string conversion on protobuf
In lieu of a global helper. // FREEBIE
This commit is contained in:
parent
3e0bce2b21
commit
6053fe67ba
2 changed files with 4 additions and 4 deletions
|
@ -37132,7 +37132,7 @@ MessageReceiver.prototype.extend({
|
|||
var promises = [];
|
||||
while (groupDetails !== undefined) {
|
||||
var promise = (function(groupDetails) {
|
||||
groupDetails.id = getString(groupDetails.id);
|
||||
groupDetails.id = groupDetails.id.toBinary();
|
||||
if (groupDetails.active) {
|
||||
return textsecure.storage.groups.getGroup(groupDetails.id).
|
||||
then(function(existingGroup) {
|
||||
|
@ -37229,7 +37229,7 @@ MessageReceiver.prototype.extend({
|
|||
var promises = [];
|
||||
|
||||
if (decrypted.group !== null) {
|
||||
decrypted.group.id = getString(decrypted.group.id);
|
||||
decrypted.group.id = decrypted.group.id.toBinary();
|
||||
|
||||
if (decrypted.group.type == textsecure.protobuf.GroupContext.Type.UPDATE) {
|
||||
if (decrypted.group.avatar !== null) {
|
||||
|
|
|
@ -256,7 +256,7 @@ MessageReceiver.prototype.extend({
|
|||
var promises = [];
|
||||
while (groupDetails !== undefined) {
|
||||
var promise = (function(groupDetails) {
|
||||
groupDetails.id = getString(groupDetails.id);
|
||||
groupDetails.id = groupDetails.id.toBinary();
|
||||
if (groupDetails.active) {
|
||||
return textsecure.storage.groups.getGroup(groupDetails.id).
|
||||
then(function(existingGroup) {
|
||||
|
@ -353,7 +353,7 @@ MessageReceiver.prototype.extend({
|
|||
var promises = [];
|
||||
|
||||
if (decrypted.group !== null) {
|
||||
decrypted.group.id = getString(decrypted.group.id);
|
||||
decrypted.group.id = decrypted.group.id.toBinary();
|
||||
|
||||
if (decrypted.group.type == textsecure.protobuf.GroupContext.Type.UPDATE) {
|
||||
if (decrypted.group.avatar !== null) {
|
||||
|
|
Loading…
Reference in a new issue