mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-20 02:59:26 +01:00
Merge branch 'krille/display-story-privacy-warning' into 'main'
chore: Display story privacy warning See merge request famedly/fluffychat!684
This commit is contained in:
commit
78706aee58
@ -2692,5 +2692,7 @@
|
|||||||
},
|
},
|
||||||
"whoCanSeeMyStoriesDesc": "Please note that people can see and contact each other in your story.",
|
"whoCanSeeMyStoriesDesc": "Please note that people can see and contact each other in your story.",
|
||||||
"whatIsGoingOn": "What is going on?",
|
"whatIsGoingOn": "What is going on?",
|
||||||
"addDescription": "Add description"
|
"addDescription": "Add description",
|
||||||
|
"storyPrivacyWarning": "Please note that people can see and contact each other in your story. Your stories will be visible for 24 hours but there is no guarantee that they will be deleted from all devices and servers.",
|
||||||
|
"iUnderstand": "Ich verstehe"
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
@ -27,6 +28,13 @@ class _InviteStoryPageState extends State<InviteStoryPage> {
|
|||||||
final Set<String> _invite = {};
|
final Set<String> _invite = {};
|
||||||
|
|
||||||
void _inviteAction() async {
|
void _inviteAction() async {
|
||||||
|
final confirmed = await showOkCancelAlertDialog(
|
||||||
|
context: context,
|
||||||
|
message: L10n.of(context)!.storyPrivacyWarning,
|
||||||
|
okLabel: L10n.of(context)!.iUnderstand,
|
||||||
|
cancelLabel: L10n.of(context)!.cancel,
|
||||||
|
);
|
||||||
|
if (confirmed != OkCancelResult.ok) return;
|
||||||
final result = await showFutureLoadingDialog(
|
final result = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () async {
|
future: () async {
|
||||||
@ -62,9 +70,6 @@ class _InviteStoryPageState extends State<InviteStoryPage> {
|
|||||||
.client
|
.client
|
||||||
.getUndecidedContactsForStories(widget.storiesRoom)
|
.getUndecidedContactsForStories(widget.storiesRoom)
|
||||||
.then((contacts) {
|
.then((contacts) {
|
||||||
if (contacts.length < 20) {
|
|
||||||
_invite.addAll(contacts.map((u) => u.id));
|
|
||||||
}
|
|
||||||
return contacts;
|
return contacts;
|
||||||
});
|
});
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
Loading…
Reference in New Issue
Block a user