Skip to content

[IMPROVE] Join channels by sending a message or join button (#13752)#13752

Merged
ggazzo merged 34 commits intoRocketChat:developfrom
bhardwajaditya:roomjoin
Mar 22, 2019
Merged

[IMPROVE] Join channels by sending a message or join button (#13752)#13752
ggazzo merged 34 commits intoRocketChat:developfrom
bhardwajaditya:roomjoin

Conversation

@bhardwajaditya
Copy link
Contributor

Users can join new channels/threads using join button or sending a text message.

@ggazzo @thiagosanchz please review

Join with button join

join Button

Join with text message

joinMessage

@@ -71,9 +71,6 @@ export class PrivateRoomType extends RoomTypeConfig {

canSendMessage(roomId) {
const room = ChatRoom.findOne({ _id: roomId, t: 'p' }, { fields: { prid: 1 } });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, room is never used, you should delete it. That's the reason your CI is failing.

@@ -11,17 +11,17 @@ import './messageBoxNotSubscribed.html';

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, most of the imported things are imported RoomHistoryManager, RoomManager, t, hasAllPermission, toastr but not used, you should remove them. These all are on line 5,6,7,8

@engelgabriel engelgabriel added this to the 1.0.0 milestone Mar 18, 2019
@ggazzo ggazzo added the feat: threads / discussions Threads and Discussions label Mar 18, 2019
@engelgabriel engelgabriel requested a review from ggazzo March 18, 2019 17:07
ggazzo
ggazzo previously approved these changes Mar 22, 2019
@ggazzo ggazzo changed the title [IMPROVE] Join channels/thread by sending a message or join button [IMPROVE] Join channels by sending a message or join button (#13752) Mar 22, 2019
@ggazzo ggazzo merged commit f776cf6 into RocketChat:develop Mar 22, 2019
@rodrigok rodrigok mentioned this pull request Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: threads / discussions Threads and Discussions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments