forked from bigbluebutton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'bigbluebutton/master' into mobile-no-fo…
…rce-debug # Conflicts: # clients/flash/air-client/src/org/bigbluebutton/air/main/views/LoadingScreenMediator.as
- Loading branch information
Showing
1,468 changed files
with
56,761 additions
and
33,690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Dockerfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM bbb-common-message AS builder | ||
|
||
ARG COMMON_VERSION=0.0.1-SNAPSHOT | ||
|
||
COPY . /source | ||
|
||
RUN cd /source \ | ||
&& find -name build.sbt -exec sed -i "s|\(.*org.bigbluebutton.*bbb-common-message[^\"]*\"[ ]*%[ ]*\)\"[^\"]*\"\(.*\)|\1\"$COMMON_VERSION\"\2|g" {} \; \ | ||
&& sbt compile | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install fakeroot | ||
|
||
RUN cd /source \ | ||
&& sbt debian:packageBin | ||
|
||
# FROM ubuntu:16.04 | ||
FROM openjdk:8-jre-slim-stretch | ||
|
||
COPY --from=builder /source/target/*.deb /root/ | ||
|
||
RUN dpkg -i /root/*.deb | ||
|
||
CMD ["/usr/share/bbb-apps-akka/bin/bbb-apps-akka"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/chat/UserTypingPubMsgHdlr.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.bigbluebutton.core.apps.chat | ||
|
||
import org.bigbluebutton.common2.msgs._ | ||
import org.bigbluebutton.core.bus.MessageBus | ||
import org.bigbluebutton.core.running.{ LiveMeeting, LogHelper } | ||
|
||
trait UserTypingPubMsgHdlr extends LogHelper { | ||
def handle(msg: UserTypingPubMsg, liveMeeting: LiveMeeting, bus: MessageBus): Unit = { | ||
def broadcastEvent(msg: UserTypingPubMsg): Unit = { | ||
val routing = Routing.addMsgToClientRouting(MessageTypes.BROADCAST_TO_MEETING, liveMeeting.props.meetingProp.intId, msg.header.userId) | ||
val envelope = BbbCoreEnvelope(UserTypingEvtMsg.NAME, routing) | ||
val header = BbbClientMsgHeader(UserTypingEvtMsg.NAME, liveMeeting.props.meetingProp.intId, msg.header.userId) | ||
|
||
val body = UserTypingEvtMsgBody(msg.body.chatId, msg.header.userId) | ||
val event = UserTypingEvtMsg(header, body) | ||
val msgEvent = BbbCommonEnvCoreMsg(envelope, event) | ||
bus.outGW.send(msgEvent) | ||
} | ||
broadcastEvent(msg) | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
.../src/main/scala/org/bigbluebutton/core/apps/groupchats/CreateDefaultPublicGroupChat.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.bigbluebutton.core.apps.groupchats | ||
|
||
import org.bigbluebutton.common2.msgs._ | ||
import org.bigbluebutton.core.bus.MessageBus | ||
import org.bigbluebutton.core.domain.MeetingState2x | ||
import org.bigbluebutton.core.models.GroupChat | ||
import org.bigbluebutton.core.running.LiveMeeting | ||
import org.bigbluebutton.core.models.SystemUser | ||
|
||
trait CreateDefaultPublicGroupChat { | ||
this: GroupChatHdlrs => | ||
|
||
def handleCreateDefaultPublicGroupChat(state: MeetingState2x, liveMeeting: LiveMeeting, bus: MessageBus): MeetingState2x = { | ||
|
||
val groupChat: GroupChat = GroupChatApp.createDefaultPublicGroupChat() | ||
|
||
def buildGroupChatCreatedEvtMsg(meetingId: String, userId: String, gc: GroupChat): BbbCommonEnvCoreMsg = { | ||
val correlationId = "SYSTEM-" + System.currentTimeMillis() | ||
val msgs = gc.msgs.map(m => GroupChatApp.toMessageToUser(m)) | ||
val routing = Routing.addMsgToClientRouting(MessageTypes.BROADCAST_TO_MEETING, meetingId, userId) | ||
val envelope = BbbCoreEnvelope(GroupChatCreatedEvtMsg.NAME, routing) | ||
val header = BbbClientMsgHeader(GroupChatCreatedEvtMsg.NAME, meetingId, userId) | ||
val body = GroupChatCreatedEvtMsgBody(correlationId, gc.id, gc.createdBy, gc.name, gc.access, gc.users, msgs) | ||
val event = GroupChatCreatedEvtMsg(header, body) | ||
BbbCommonEnvCoreMsg(envelope, event) | ||
} | ||
|
||
val respMsg = buildGroupChatCreatedEvtMsg( | ||
liveMeeting.props.meetingProp.intId, | ||
SystemUser.ID, | ||
groupChat | ||
) | ||
|
||
bus.outGW.send(respMsg) | ||
val groupChats = state.groupChats.add(groupChat) | ||
state.update(groupChats) | ||
} | ||
} |
Oops, something went wrong.