after Lucio suggestion

This commit is contained in:
Massimiliano Assante 2021-09-09 16:32:48 +02:00
parent 46e5e2a787
commit 23c2dedffb
1 changed files with 1 additions and 2 deletions

View File

@ -448,8 +448,7 @@ public class ConvServiceImpl implements MessageService {
try {
OpenResolver openResolver = client.open(itemId);
if(openResolver.asItem().getType()==ContainerType.FOLDER) {
if(openResolver.resolve().getType()==ContainerType.FILE) {
String publicLink = openResolver.asFile().getPublicLink(itemId).toString();
String itemName = openResolver.asFile().get().getTitle();