webex-android-sdk icon indicating copy to clipboard operation
webex-android-sdk copied to clipboard

Thumbnail value null for pdf document in setMessageObserver

Open Ramaraju1992 opened this issue 4 years ago • 2 comments

when I receive a new message i added listener like below,

webex.messages().setMessageObserver(
	new MessageObserver() {
		public void onEvent(MessageEvent event) {
			if (event instanceof MessageReceived) {
				Message currentMessage = ((MessageReceived) event).getMessage();
				List<RemoteFile> messageFiles = currentMessage.getFiles();
				RemoteFile messageFile = messageFiles.get(0);
				Log.e("thumbnail value ==> ", messageFile.getThumbnail());
			}
		}
	}
);

Thumbnail value null if I receive new message with document(pdf). and when I receive Image file, thumbnail value exists. please refer below screenshots. PDF File RemoteFile Response for PDF: File{fileSize=1209423, version='a0e8407c27b54b2d9494a829e4c1a957', author=null, mimeType='application/pdf', updated=null', contentId=e78d5af0-d57d-4a21-ae43-7396c627fb20', image=', isHidden=false} image

Image File RemoteFile Response for Image: File{fileSize=20609, version='89e7edd09bc94bb8860e3312b31e2dc0', author=null, mimeType='image/jpeg', updated=null', contentId=a0697586-ba52-4829-8091-dde1972ae648', image=Image{url=https://files-api-k.wbx2.com/v1/spaces/adeddae9-deca-41f5-bee2-987adabb1b73/contents/f9a22dfe-8916-45ed-883c-3bb681599eae/versions/f1a016a5dedc494991c7087e6aebd932/bytes, width=306, height=540}', isHidden=false} image

and when fetch messages using webex.messages().list, thumbnail value exist or same message file image

Ramaraju1992 avatar Aug 03 '21 08:08 Ramaraju1992

@Ramaraju1992 can you please clarify if you are using the Android SKD 2.8 or 3.0 version? Is the issue reproducible with the KitchenSink app: https://github.com/webex/webex-android-sdk-example ?

jbenyovs avatar Aug 03 '21 09:08 jbenyovs

@jbenyovs we are using Android SDK v2.8.0. and it is still same in Kitchen Sink App too. please find below screenshot for reference. image

And one more Observation is when i try to send .tiff formatted image files bitmap value is null even from webex.messages().list. please refer below screenshot image

Ramaraju1992 avatar Aug 03 '21 10:08 Ramaraju1992