Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ Those groups of people can then be used by any other app for sharing purpose.
<step>OCA\Circles\Migration\Migration</step>
<step>OCA\Circles\Migration\SyncGroupCircles</step>
</post-migration>
<live-migration>
<step>OCA\Circles\Migration\RemoveShareTokens</step>
</live-migration>
</repair-steps>

<commands>
Expand Down
2 changes: 0 additions & 2 deletions lib/ConfigLexicon.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/
class ConfigLexicon implements ILexicon {
public const USER_SINGLE_ID = 'userSingleId';
public const REMOVE_SHARE_TOKENS_DONE = 'remove_share_tokens_done';

public function getStrictness(): Strictness {
return Strictness::IGNORE;
Expand All @@ -35,7 +34,6 @@ public function getAppConfigs(): array {
public function getUserConfigs(): array {
return [
new Entry(key: self::USER_SINGLE_ID, type: ValueType::STRING, defaultRaw: '', definition: 'caching singleId for each local account', lazy: false, flags: IUserConfig::FLAG_INDEXED),
new Entry(key: self::REMOVE_SHARE_TOKENS_DONE, type: ValueType::BOOL, defaultRaw: false, definition: 'whether the remove share tokens repair step has already been executed', lazy: true),
];
}
}
58 changes: 0 additions & 58 deletions lib/Migration/RemoveShareTokens.php

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Model/ShareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function setToken(string $token): self {
}

public function getToken(): string {
return $this->shareToken?->getToken() ?? '';
return $this->token;
}

public function setStatus(int $status): self {
Expand Down
1 change: 1 addition & 0 deletions lib/ShareByCircleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function create(IShare $share): IShare {
->add(DataProbe::INITIATOR, [DataProbe::BASED_ON]);

$circle = $this->circleService->probeCircle($share->getSharedWith(), $circleProbe, $dataProbe);
$share->setToken($this->token(15));
$share->setMailSend(true);
$owner = $circle->getInitiator();
$this->shareWrapperService->save($share);
Expand Down
Loading