🐛 Fix some bugs within relationship forgot
This commit is contained in:
@@ -284,7 +284,7 @@
|
|||||||
"blockUser": "Block User",
|
"blockUser": "Block User",
|
||||||
"unblockUser": "Unblock User",
|
"unblockUser": "Unblock User",
|
||||||
"forgotRelationship": "Forgot Relationship",
|
"forgotRelationship": "Forgot Relationship",
|
||||||
"forgotRelationshipConfirm": "Are you sure you want to forget your relationship with {}?",
|
"forgotRelationshipConfirm": "Are you sure you want to forget your relationship with {}? This only changes your relationship status with she / her, she / her might not able to see your friend only posts and use other friend only features. But they can send the friend request again.",
|
||||||
"relationshipDeleted": "Relationship deleted",
|
"relationshipDeleted": "Relationship deleted",
|
||||||
"friendRequestAccepted": "Accepted friend request from {}",
|
"friendRequestAccepted": "Accepted friend request from {}",
|
||||||
"friendRequestDeclined": "Declined friend request from {}",
|
"friendRequestDeclined": "Declined friend request from {}",
|
||||||
|
|||||||
@@ -266,7 +266,7 @@
|
|||||||
"blockUser": "屏蔽用户",
|
"blockUser": "屏蔽用户",
|
||||||
"unblockUser": "解除屏蔽用户",
|
"unblockUser": "解除屏蔽用户",
|
||||||
"forgotRelationship": "忘记关系",
|
"forgotRelationship": "忘记关系",
|
||||||
"forgotRelationshipConfirm": "确定要忘记与 {} 的关系吗?",
|
"forgotRelationshipConfirm": "确定要忘记与 {} 的关系吗?这只会改变您对他/她的关系,他可能看到不到您的友限帖,但是您仍然可以看到他/她的。他/她也可以再次提出好友申请。",
|
||||||
"relationshipDeleted": "关系已删除",
|
"relationshipDeleted": "关系已删除",
|
||||||
"friendRequestAccepted": "已接受 {} 的好友请求",
|
"friendRequestAccepted": "已接受 {} 的好友请求",
|
||||||
"friendRequestDeclined": "已拒绝 {} 的好友请求",
|
"friendRequestDeclined": "已拒绝 {} 的好友请求",
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ class RelationshipScreen extends HookConsumerWidget {
|
|||||||
showLoadingModal(context);
|
showLoadingModal(context);
|
||||||
try {
|
try {
|
||||||
final client = ref.read(apiClientProvider);
|
final client = ref.read(apiClientProvider);
|
||||||
await client.delete('/pass/relationships/${relationship.accountId}');
|
await client.delete('/pass/relationships/${relationship.relatedId}');
|
||||||
relationshipNotifier.refresh();
|
relationshipNotifier.refresh();
|
||||||
showSnackBar('relationshipDeleted'.tr());
|
showSnackBar('relationshipDeleted'.tr());
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user