Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
232
Merge Requests
18
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
6bc3e382a7ac7fbec73f0ec7a937e68051a3256c...72ce7f5ef99197dd61687f67db6aff998f61aa58
Source
72ce7f5ef99197dd61687f67db6aff998f61aa58
...
Target
6bc3e382a7ac7fbec73f0ec7a937e68051a3256c
Compare
Commits (2)
(feat) check FLAG_MESSAGE in messenger conversations
· 1a1f160e
Martin Santangelo
authored
23 minutes ago
1a1f160e
(chore) update spec snapshot
· 72ce7f5e
Martin Santangelo
authored
22 minutes ago
72ce7f5e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
42 deletions
+16
-42
__tests__/activity/components/__snapshots__/Actions.js.snap
View file @
72ce7f5e
...
...
@@ -23,27 +23,18 @@ exports[`Activity component renders correctly 1`] = `
<ThumbUpAction
entity={
Object {
"_list": Object {
"viewed": Object {
"addViewed": [Function],
"viewed": Map {
"1019155171608096768" => true,
},
},
},
"attachment_guid": false,
"blurb": false,
"containerObj": undefined,
"container_guid": "activityguid0",
"custom_data": false,
"custom_type": false,
"description": "Congratulations! ",
"edited": "",
"getThumbSource": [Function],
"guid": "activityguid0",
"mature": false,
"message": "Message",
"ownerObj": Object {
"getAvatarSource": [Function],
"guid": "824853017709780997",
"subtype": false,
"time_created": "1522036284",
...
...
@@ -72,27 +63,18 @@ exports[`Activity component renders correctly 1`] = `
<ThumbDownAction
entity={
Object {
"_list": Object {
"viewed": Object {
"addViewed": [Function],
"viewed": Map {
"1019155171608096768" => true,
},
},
},
"attachment_guid": false,
"blurb": false,
"containerObj": undefined,
"container_guid": "activityguid0",
"custom_data": false,
"custom_type": false,
"description": "Congratulations! ",
"edited": "",
"getThumbSource": [Function],
"guid": "activityguid0",
"mature": false,
"message": "Message",
"ownerObj": Object {
"getAvatarSource": [Function],
"guid": "824853017709780997",
"subtype": false,
"time_created": "1522036284",
...
...
@@ -121,7 +103,6 @@ exports[`Activity component renders correctly 1`] = `
<WireAction
owner={
Object {
"getAvatarSource": [Function],
"guid": "824853017709780997",
"subtype": false,
"time_created": "1522036284",
...
...
@@ -132,27 +113,18 @@ exports[`Activity component renders correctly 1`] = `
<CommentsAction
entity={
Object {
"_list": Object {
"viewed": Object {
"addViewed": [Function],
"viewed": Map {
"1019155171608096768" => true,
},
},
},
"attachment_guid": false,
"blurb": false,
"containerObj": undefined,
"container_guid": "activityguid0",
"custom_data": false,
"custom_type": false,
"description": "Congratulations! ",
"edited": "",
"getThumbSource": [Function],
"guid": "activityguid0",
"mature": false,
"message": "Message",
"ownerObj": Object {
"getAvatarSource": [Function],
"guid": "824853017709780997",
"subtype": false,
"time_created": "1522036284",
...
...
@@ -176,27 +148,18 @@ exports[`Activity component renders correctly 1`] = `
<RemindAction
entity={
Object {
"_list": Object {
"viewed": Object {
"addViewed": [Function],
"viewed": Map {
"1019155171608096768" => true,
},
},
},
"attachment_guid": false,
"blurb": false,
"containerObj": undefined,
"container_guid": "activityguid0",
"custom_data": false,
"custom_type": false,
"description": "Congratulations! ",
"edited": "",
"getThumbSource": [Function],
"guid": "activityguid0",
"mature": false,
"message": "Message",
"ownerObj": Object {
"getAvatarSource": [Function],
"guid": "824853017709780997",
"subtype": false,
"time_created": "1522036284",
...
...
This diff is collapsed.
src/messenger/ConversationModel.js
0 → 100644
View file @
72ce7f5e
import
BaseModel
from
'
../common/BaseModel
'
;
/**
* Conversation model
*/
export
default
class
ConversationModel
extends
BaseModel
{
//TODO: move decryption logic here
}
This diff is collapsed.
src/messenger/MessengerListStore.js
View file @
72ce7f5e
...
...
@@ -16,6 +16,7 @@ import badge from '../common/services/badge.service';
import
{
abort
,
isNetworkFail
}
from
'
../common/helpers/abortableFetch
'
;
import
i18n
from
'
../common/services/i18n.service
'
;
import
logService
from
'
../common/services/log.service
'
;
import
ConversationModel
from
'
./ConversationModel
'
;
/**
* Messenger Conversation List Store
...
...
@@ -261,6 +262,7 @@ class MessengerListStore {
@
action
pushConversations
(
conversations
)
{
conversations
=
ConversationModel
.
createMany
(
conversations
);
this
.
conversations
=
[...
this
.
conversations
,
...
conversations
];
}
...
...
This diff is collapsed.
src/messenger/conversation/ConversationView.js
View file @
72ce7f5e
...
...
@@ -14,6 +14,7 @@ import { observer } from 'mobx-react/native'
import
{
MINDS_CDN_URI
}
from
'
../../config/Config
'
;
import
*
as
Sentry
from
'
@sentry/react-native
'
;
import
{
FLAG_MESSAGE
}
from
'
../../common/Permissions
'
;
/**
* Conversation Component
...
...
@@ -25,7 +26,7 @@ export default class ConversationView extends Component {
* Navigate To conversation
*/
_navToConversation
=
()
=>
{
if
(
this
.
props
.
navigation
)
{
if
(
this
.
props
.
navigation
&&
this
.
props
.
item
.
can
(
FLAG_MESSAGE
)
)
{
this
.
props
.
navigation
.
push
(
'
Conversation
'
,
{
conversation
:
this
.
props
.
item
});
}
}
...
...
This diff is collapsed.