INNER CODE UNIT · JavaScript

confirmed

zulip/zulip-mobile · src/action-sheets/index.js:409

    const confirmed = await new Promise((resolve, reject) => {
      showConfirmationDialog({
        destructive: true,
        title: 'Delete topic',
        message: {
          text: 'Deleting a topic will immediately remove it and its messages for everyone. Other users may find this confusing, especially if they had received an email or push notification related to the deleted messages.\n\nAre you sure you want to permanently delete “{topic}”?',
          values: { topic },
        },
        onPressConfirm: () => resolve(true),
        onPressCancel: () => resolve(false),
        _,
      });
    });
    if (confirmed) {
      await dispatch(deleteMessagesForTopic(streamId, topic));
    }
  },
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…