Populate attachment file size
// FREEBIE
This commit is contained in:
		
					parent
					
						
							
								fc514aa96f
							
						
					
				
			
			
				commit
				
					
						27a1c9f18a
					
				
			
		
					 4 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -38538,6 +38538,9 @@ MessageReceiver.prototype.extend({
 | 
			
		|||
    handleAttachment: function(attachment) {
 | 
			
		||||
        attachment.id = attachment.id.toString();
 | 
			
		||||
        attachment.key = attachment.key.toArrayBuffer();
 | 
			
		||||
        if (attachment.size) {
 | 
			
		||||
            attachment.size = attachment.size.toNumber();
 | 
			
		||||
        }
 | 
			
		||||
        if (attachment.digest) {
 | 
			
		||||
          attachment.digest = attachment.digest.toArrayBuffer();
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			@ -39052,6 +39055,9 @@ MessageSender.prototype = {
 | 
			
		|||
                if (attachment.fileName) {
 | 
			
		||||
                    proto.fileName = attachment.fileName;
 | 
			
		||||
                }
 | 
			
		||||
                if (attachment.size) {
 | 
			
		||||
                    proto.size = attachment.size;
 | 
			
		||||
                }
 | 
			
		||||
                return proto;
 | 
			
		||||
            });
 | 
			
		||||
        }.bind(this));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue