Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.ReactNative
Commits
b90cf9e4
Unverified
Commit
b90cf9e4
authored
Feb 07, 2020
by
Djorkaeff Alexandre
Committed by
GitHub
Feb 07, 2020
Browse files
[NEW] Omnichannel Beta (#1674)
parent
ba37bb19
Changes
17
Hide whitespace changes
Inline
Side-by-side
android/app/src/main/res/drawable-hdpi/livechat.png
0 → 100644
View file @
b90cf9e4
488 Bytes
android/app/src/main/res/drawable-mdpi/livechat.png
0 → 100644
View file @
b90cf9e4
759 Bytes
android/app/src/main/res/drawable-xhdpi/livechat.png
0 → 100644
View file @
b90cf9e4
820 Bytes
android/app/src/main/res/drawable-xxhdpi/livechat.png
0 → 100644
View file @
b90cf9e4
1.3 KB
android/app/src/main/res/drawable-xxxhdpi/livechat.png
0 → 100644
View file @
b90cf9e4
1.47 KB
app/containers/RoomTypeIcon.js
View file @
b90cf9e4
...
@@ -32,6 +32,8 @@ const RoomTypeIcon = React.memo(({
...
@@ -32,6 +32,8 @@ const RoomTypeIcon = React.memo(({
return
<
Image
source
=
{{
uri
:
'
hashtag
'
}}
style
=
{[
styles
.
style
,
style
,
{
width
:
size
,
height
:
size
,
tintColor
:
color
}]}
/>
;
return
<
Image
source
=
{{
uri
:
'
hashtag
'
}}
style
=
{[
styles
.
style
,
style
,
{
width
:
size
,
height
:
size
,
tintColor
:
color
}]}
/>
;
}
if
(
type
===
'
d
'
)
{
}
if
(
type
===
'
d
'
)
{
return
<
CustomIcon
name
=
'
at
'
size
=
{
13
}
style
=
{[
styles
.
style
,
styles
.
discussion
,
{
color
}]}
/>
;
return
<
CustomIcon
name
=
'
at
'
size
=
{
13
}
style
=
{[
styles
.
style
,
styles
.
discussion
,
{
color
}]}
/>
;
}
if
(
type
===
'
l
'
)
{
return
<
CustomIcon
name
=
'
livechat
'
size
=
{
13
}
style
=
{[
styles
.
style
,
styles
.
discussion
,
{
color
}]}
/>
;
}
}
return
<
Image
source
=
{{
uri
:
'
lock
'
}}
style
=
{[
styles
.
style
,
style
,
{
width
:
size
,
height
:
size
,
tintColor
:
color
}]}
/>
;
return
<
Image
source
=
{{
uri
:
'
lock
'
}}
style
=
{[
styles
.
style
,
style
,
{
width
:
size
,
height
:
size
,
tintColor
:
color
}]}
/>
;
});
});
...
...
app/lib/rocketchat.js
View file @
b90cf9e4
...
@@ -949,7 +949,7 @@ const RocketChat = {
...
@@ -949,7 +949,7 @@ const RocketChat = {
},
},
roomTypeToApiType
(
t
)
{
roomTypeToApiType
(
t
)
{
const
types
=
{
const
types
=
{
c
:
'
channels
'
,
d
:
'
im
'
,
p
:
'
groups
'
c
:
'
channels
'
,
d
:
'
im
'
,
p
:
'
groups
'
,
l
:
'
channels
'
};
};
return
types
[
t
];
return
types
[
t
];
},
},
...
...
app/notifications/push/index.js
View file @
b90cf9e4
...
@@ -14,9 +14,12 @@ export const onNotification = (notification) => {
...
@@ -14,9 +14,12 @@ export const onNotification = (notification) => {
}
=
EJSON
.
parse
(
data
.
ejson
);
}
=
EJSON
.
parse
(
data
.
ejson
);
const
types
=
{
const
types
=
{
c
:
'
channel
'
,
d
:
'
direct
'
,
p
:
'
group
'
c
:
'
channel
'
,
d
:
'
direct
'
,
p
:
'
group
'
,
l
:
'
channels
'
};
};
const
roomName
=
type
===
'
d
'
?
sender
.
username
:
name
;
let
roomName
=
type
===
'
d
'
?
sender
.
username
:
name
;
if
(
type
===
'
l
'
)
{
roomName
=
sender
.
name
;
}
const
params
=
{
const
params
=
{
host
,
host
,
...
...
app/sagas/deepLinking.js
View file @
b90cf9e4
...
@@ -13,7 +13,7 @@ import EventEmitter from '../utils/events';
...
@@ -13,7 +13,7 @@ import EventEmitter from '../utils/events';
import
{
appStart
}
from
'
../actions
'
;
import
{
appStart
}
from
'
../actions
'
;
const
roomTypes
=
{
const
roomTypes
=
{
channel
:
'
c
'
,
direct
:
'
d
'
,
group
:
'
p
'
channel
:
'
c
'
,
direct
:
'
d
'
,
group
:
'
p
'
,
channels
:
'
l
'
};
};
const
handleInviteLink
=
function
*
handleInviteLink
({
params
,
requireLogin
=
false
})
{
const
handleInviteLink
=
function
*
handleInviteLink
({
params
,
requireLogin
=
false
})
{
...
...
app/views/RoomActionsView/index.js
View file @
b90cf9e4
...
@@ -349,7 +349,10 @@ class RoomActionsView extends React.Component {
...
@@ -349,7 +349,10 @@ class RoomActionsView extends React.Component {
renderItem
:
this
.
renderItem
renderItem
:
this
.
renderItem
});
});
}
}
}
else
if
(
t
===
'
l
'
)
{
sections
[
2
].
data
=
[
notificationsAction
];
}
}
return
sections
;
return
sections
;
}
}
...
...
app/views/RoomInfoView/index.js
View file @
b90cf9e4
...
@@ -117,7 +117,7 @@ class RoomInfoView extends React.Component {
...
@@ -117,7 +117,7 @@ class RoomInfoView extends React.Component {
}
}
}
}
const
permissions
=
await
RocketChat
.
hasPermission
([
PERMISSION_EDIT_ROOM
],
room
.
rid
);
const
permissions
=
await
RocketChat
.
hasPermission
([
PERMISSION_EDIT_ROOM
],
room
.
rid
);
if
(
permissions
[
PERMISSION_EDIT_ROOM
]
&&
!
room
.
prid
)
{
if
(
permissions
[
PERMISSION_EDIT_ROOM
]
&&
!
room
.
prid
&&
this
.
t
!==
'
l
'
)
{
navigation
.
setParams
({
showEdit
:
true
});
navigation
.
setParams
({
showEdit
:
true
});
}
}
}
}
...
...
app/views/RoomView/Header/Icon.js
View file @
b90cf9e4
...
@@ -40,6 +40,8 @@ const Icon = React.memo(({ type, status, theme }) => {
...
@@ -40,6 +40,8 @@ const Icon = React.memo(({ type, status, theme }) => {
icon
=
'
thread
'
;
icon
=
'
thread
'
;
}
else
if
(
type
===
'
c
'
)
{
}
else
if
(
type
===
'
c
'
)
{
icon
=
'
hashtag
'
;
icon
=
'
hashtag
'
;
}
else
if
(
type
===
'
l
'
)
{
icon
=
'
livechat
'
;
}
else
{
}
else
{
icon
=
'
lock
'
;
icon
=
'
lock
'
;
}
}
...
...
app/views/RoomsListView/index.js
View file @
b90cf9e4
...
@@ -380,8 +380,7 @@ class RoomsListView extends React.Component {
...
@@ -380,8 +380,7 @@ class RoomsListView extends React.Component {
.
get
(
'
subscriptions
'
)
.
get
(
'
subscriptions
'
)
.
query
(
.
query
(
Q
.
where
(
'
archived
'
,
false
),
Q
.
where
(
'
archived
'
,
false
),
Q
.
where
(
'
open
'
,
true
),
Q
.
where
(
'
open
'
,
true
)
Q
.
where
(
'
t
'
,
Q
.
notEq
(
'
l
'
))
)
)
.
observeWithColumns
([
'
room_updated_at
'
,
'
unread
'
,
'
alert
'
,
'
user_mentions
'
,
'
f
'
,
'
t
'
]);
.
observeWithColumns
([
'
room_updated_at
'
,
'
unread
'
,
'
alert
'
,
'
user_mentions
'
,
'
f
'
,
'
t
'
]);
...
...
ios/RocketChatRN/Images.xcassets/Icons/livechat.imageset/Contents.json
0 → 100644
View file @
b90cf9e4
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"livechat.png"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"livechat@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"livechat@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
ios/RocketChatRN/Images.xcassets/Icons/livechat.imageset/livechat.png
0 → 100644
View file @
b90cf9e4
488 Bytes
ios/RocketChatRN/Images.xcassets/Icons/livechat.imageset/livechat@2x.png
0 → 100644
View file @
b90cf9e4
820 Bytes
ios/RocketChatRN/Images.xcassets/Icons/livechat.imageset/livechat@3x.png
0 → 100644
View file @
b90cf9e4
1.3 KB
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment