view data fixes
This commit is contained in:
@@ -19,9 +19,10 @@ export class AvatarDisplay {
|
||||
|
||||
/**
|
||||
* Determines if avatar data is valid for display.
|
||||
* Accepts base64-encoded string buffer.
|
||||
*/
|
||||
static hasValidData(buffer: ArrayBuffer, contentType: string): boolean {
|
||||
return buffer.byteLength > 0 && contentType.length > 0;
|
||||
static hasValidData(buffer: string, contentType: string): boolean {
|
||||
return buffer.length > 0 && contentType.length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user