fix avatars in roster
This commit is contained in:
		
							parent
							
								
									3c4a63e97e
								
							
						
					
					
						commit
						d6f807bc0b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -61,7 +61,7 @@ def get_avatar_pixbuf_encoded_mime(photo):
 | 
			
		|||
        img_encoded = photo['BINVAL']
 | 
			
		||||
        avatar_encoded = img_encoded
 | 
			
		||||
        try:
 | 
			
		||||
            img_decoded = base64.b64decode(img_encoded.encode('utf-8')).decode('utf-8')
 | 
			
		||||
            img_decoded = base64.b64decode(img_encoded.encode('utf-8'))
 | 
			
		||||
        except Exception:
 | 
			
		||||
            pass
 | 
			
		||||
    if img_decoded:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue