mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 21:35:04 +03:00
Merge pull request #2103 from ecency/nt/post-duplication-fix
Nt/post duplication fix
This commit is contained in:
commit
75542fff43
@ -157,6 +157,7 @@ const CommentsContainer = ({
|
||||
const _handleOnReplyPress = (item) => {
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key: 'editor_reply',
|
||||
params: {
|
||||
isReply: true,
|
||||
post: item,
|
||||
@ -179,6 +180,7 @@ const CommentsContainer = ({
|
||||
const _handleOnEditPress = (item) => {
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key: `editor_edit_reply_${item.permlink}`,
|
||||
params: {
|
||||
isEdit: true,
|
||||
isReply: true,
|
||||
|
@ -12,6 +12,7 @@ const PostButtonView = ({ navigation }) => (
|
||||
onPress={() =>
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key: 'editor_post',
|
||||
})
|
||||
}
|
||||
activeOpacity={1}
|
||||
|
@ -224,6 +224,7 @@ class PostDropdownContainer extends PureComponent {
|
||||
if (isLoggedIn) {
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key:`editor_post_${content.permlink}`,
|
||||
params: {
|
||||
isReply: true,
|
||||
post: content,
|
||||
|
@ -8,15 +8,12 @@ import get from 'lodash/get';
|
||||
import { toastNotification } from '../../../redux/actions/uiAction';
|
||||
|
||||
// Dsteem
|
||||
import { deleteComment, getActiveVotes } from '../../../providers/hive/dhive';
|
||||
import { deleteComment } from '../../../providers/hive/dhive';
|
||||
import { getPostReblogs } from '../../../providers/ecency/ecency';
|
||||
|
||||
// Constants
|
||||
import { default as ROUTES } from '../../../constants/routeNames';
|
||||
|
||||
// Utilities
|
||||
import { parseActiveVotes } from '../../../utils/postParser';
|
||||
|
||||
// Component
|
||||
import PostDisplayView from '../view/postDisplayView';
|
||||
|
||||
@ -84,6 +81,7 @@ const PostDisplayContainer = ({
|
||||
const _handleOnReplyPress = () => {
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key: 'editor_replay',
|
||||
params: {
|
||||
isReply: true,
|
||||
post,
|
||||
@ -98,6 +96,7 @@ const PostDisplayContainer = ({
|
||||
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key: `editor_post_${post.permlink}`,
|
||||
params: {
|
||||
isEdit: true,
|
||||
isReply,
|
||||
|
@ -55,6 +55,7 @@ const CommunityContainer = ({ children, navigation, currentAccount, pinCode, isL
|
||||
const _handleNewPostButtonPress = () => {
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key: 'editor_community_post',
|
||||
params: {
|
||||
community: [tag],
|
||||
},
|
||||
|
@ -111,6 +111,7 @@ const DraftsContainer = ({ currentAccount, intl, navigation, dispatch }) => {
|
||||
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
key: `editor_draft_${id}`,
|
||||
params: {
|
||||
draft: selectedDraft,
|
||||
fetchPost: _getDrafts,
|
||||
|
Loading…
Reference in New Issue
Block a user