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