Merge branch 'fixes/fix-error-sharing-file-in-talk' into releases/release-h2f
This commit is contained in:
commit
df826724b1
@ -249,6 +249,7 @@ class GestionService {
|
||||
}
|
||||
}else {
|
||||
$roomToken = $this->talkService->getRoomTokenBeetwenTwoUser($this->userConnectedUuid, $userName);
|
||||
if($roomToken != null){
|
||||
foreach ( $attachments as $attachment) {
|
||||
$this->userConnectedStorage->getFullPath("/");
|
||||
$path = Filesystem::getPath($attachment['file_id']);
|
||||
@ -257,6 +258,7 @@ class GestionService {
|
||||
$this->sendFileAttachmentToTalk($roomToken,$cookie , $attachment['name']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -408,6 +410,7 @@ class GestionService {
|
||||
|
||||
}else{
|
||||
$roomToken = $this->talkService->getRoomTokenBeetwenTwoUser($this->userConnectedUuid, $userName);
|
||||
if($roomToken != null){
|
||||
foreach ( $attachments as $attachment) {
|
||||
$this->userConnectedStorage->getFullPath("/");
|
||||
$path = Filesystem::getPath($attachment['file_id']);
|
||||
@ -416,6 +419,7 @@ class GestionService {
|
||||
//sendFileAttachmentToTalk
|
||||
$this->sendFileAttachmentToTalk($roomToken,$cookie , $attachment['name']);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -107,7 +107,7 @@ class TalkService {
|
||||
$senderAndTargetIsTheSameUser = $targetUser == $senderUser;
|
||||
$senderUser = $senderAndTargetIsTheSameUser ? BddConstant::DEFAULT_ADMIN_ID_NEXTCLOUD : $senderUser;
|
||||
if( $targetUser === BddConstant::DEFAULT_ADMIN_ID_NEXTCLOUD && $senderUser === BddConstant::DEFAULT_ADMIN_ID_NEXTCLOUD){
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
$roomNames = $this->getUserDevisTalkRoomNames($targetUser , $senderUser);
|
||||
$room = $this->talkDb->getDevisTalkRoomByNames($roomNames);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user