Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added android/app/src/main/res/drawable-hdpi/livechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-mdpi/livechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-xhdpi/livechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/containers/RoomTypeIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const RoomTypeIcon = React.memo(({
return <Image source={{ uri: 'hashtag' }} style={[styles.style, style, { width: size, height: size, tintColor: color }]} />;
} if (type === 'd') {
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 }]} />;
});
Expand Down
2 changes: 1 addition & 1 deletion app/lib/rocketchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ const RocketChat = {
},
roomTypeToApiType(t) {
const types = {
c: 'channels', d: 'im', p: 'groups'
c: 'channels', d: 'im', p: 'groups', l: 'channels'
};
return types[t];
},
Expand Down
7 changes: 5 additions & 2 deletions app/notifications/push/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ export const onNotification = (notification) => {
} = EJSON.parse(data.ejson);

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 = {
host,
Expand Down
2 changes: 1 addition & 1 deletion app/sagas/deepLinking.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import EventEmitter from '../utils/events';
import { appStart } from '../actions';

const roomTypes = {
channel: 'c', direct: 'd', group: 'p'
channel: 'c', direct: 'd', group: 'p', channels: 'l'
};

const handleInviteLink = function* handleInviteLink({ params, requireLogin = false }) {
Expand Down
3 changes: 3 additions & 0 deletions app/views/RoomActionsView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ class RoomActionsView extends React.Component {
renderItem: this.renderItem
});
}
} else if (t === 'l') {
sections[2].data = [notificationsAction];
}

return sections;
}

Expand Down
2 changes: 1 addition & 1 deletion app/views/RoomInfoView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class RoomInfoView extends React.Component {
}
}
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 });
}
}
Expand Down
2 changes: 2 additions & 0 deletions app/views/RoomView/Header/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const Icon = React.memo(({ type, status, theme }) => {
icon = 'thread';
} else if (type === 'c') {
icon = 'hashtag';
} else if (type === 'l') {
icon = 'livechat';
} else {
icon = 'lock';
}
Expand Down
3 changes: 1 addition & 2 deletions app/views/RoomsListView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,7 @@ class RoomsListView extends React.Component {
.get('subscriptions')
.query(
Q.where('archived', false),
Q.where('open', true),
Q.where('t', Q.notEq('l'))
Q.where('open', true)
)
.observeWithColumns(['room_updated_at', 'unread', 'alert', 'user_mentions', 'f', 't']);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"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"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.