add messageDescription in notifications
This commit is contained in:
parent
41778cb959
commit
6874156190
@ -58,6 +58,7 @@ trait UpdateBreakoutRoomsTimeMsgHdlr extends RightsManagementTrait {
|
||||
"success",
|
||||
"about",
|
||||
"app.chat.breakoutDurationUpdated",
|
||||
"Used when the breakout duration is updated",
|
||||
Vector(s"${msg.body.timeInMinutes}")
|
||||
)
|
||||
outGW.send(notifyEvent)
|
||||
|
@ -514,16 +514,17 @@ object MsgBuilder {
|
||||
}
|
||||
|
||||
def buildNotifyAllInMeetingEvtMsg(
|
||||
meetingId: String,
|
||||
notificationType: String,
|
||||
icon: String,
|
||||
messageId: String,
|
||||
messageValues: Vector[String]
|
||||
meetingId: String,
|
||||
notificationType: String,
|
||||
icon: String,
|
||||
messageId: String,
|
||||
messageDescription: String,
|
||||
messageValues: Vector[String]
|
||||
): BbbCommonEnvCoreMsg = {
|
||||
val routing = collection.immutable.HashMap("sender" -> "bbb-apps-akka")
|
||||
val envelope = BbbCoreEnvelope(NotifyAllInMeetingEvtMsg.NAME, routing)
|
||||
val header = BbbClientMsgHeader(NotifyAllInMeetingEvtMsg.NAME, meetingId, "not-used")
|
||||
val body = NotifyAllInMeetingEvtMsgBody(meetingId, notificationType, icon, messageId, messageValues)
|
||||
val body = NotifyAllInMeetingEvtMsgBody(meetingId, notificationType, icon, messageId, messageDescription, messageValues)
|
||||
val event = NotifyAllInMeetingEvtMsg(header, body)
|
||||
|
||||
BbbCommonEnvCoreMsg(envelope, event)
|
||||
|
@ -101,21 +101,21 @@ case class NotifyAllInMeetingEvtMsg(
|
||||
header: BbbClientMsgHeader,
|
||||
body: NotifyAllInMeetingEvtMsgBody
|
||||
) extends BbbCoreMsg
|
||||
case class NotifyAllInMeetingEvtMsgBody(meetingId: String, notificationType: String, icon: String, messageId: String, messageValues: Vector[String])
|
||||
case class NotifyAllInMeetingEvtMsgBody(meetingId: String, notificationType: String, icon: String, messageId: String, messageDescription: String, messageValues: Vector[String])
|
||||
|
||||
object NotifyUserInMeetingEvtMsg { val NAME = "NotifyUserInMeetingEvtMsg" }
|
||||
case class NotifyUserInMeetingEvtMsg(
|
||||
header: BbbClientMsgHeader,
|
||||
body: NotifyUserInMeetingEvtMsgBody
|
||||
) extends BbbCoreMsg
|
||||
case class NotifyUserInMeetingEvtMsgBody(userId: String, meetingId: String, notificationType: String, icon: String, messageId: String, messageValues: Vector[String])
|
||||
case class NotifyUserInMeetingEvtMsgBody(userId: String, meetingId: String, notificationType: String, icon: String, messageId: String, messageDescription: String, messageValues: Vector[String])
|
||||
|
||||
object NotifyRoleInMeetingEvtMsg { val NAME = "NotifyRoleInMeetingEvtMsg" }
|
||||
case class NotifyRoleInMeetingEvtMsg(
|
||||
header: BbbClientMsgHeader,
|
||||
body: NotifyRoleInMeetingEvtMsgBody
|
||||
) extends BbbCoreMsg
|
||||
case class NotifyRoleInMeetingEvtMsgBody(role: String, meetingId: String, notificationType: String, icon: String, messageId: String, messageValues: Vector[String])
|
||||
case class NotifyRoleInMeetingEvtMsgBody(role: String, meetingId: String, notificationType: String, icon: String, messageId: String, messageDescription: String, messageValues: Vector[String])
|
||||
|
||||
/**
|
||||
* Sent to bbb-web
|
||||
|
@ -7,6 +7,7 @@ export default function handleNotifyAllInMeeting({ body }) {
|
||||
notificationType: String,
|
||||
icon: String,
|
||||
messageId: String,
|
||||
messageDescription: String,
|
||||
messageValues: Array,
|
||||
});
|
||||
return emitNotification(body, 'notifyAllInMeeting');
|
||||
|
@ -8,6 +8,7 @@ export default function handleNotifyRoleInMeeting({ body }) {
|
||||
notificationType: String,
|
||||
icon: String,
|
||||
messageId: String,
|
||||
messageDescription: String,
|
||||
messageValues: Array,
|
||||
});
|
||||
return emitNotification(body, 'NotifyRoleInMeeting');
|
||||
|
@ -8,6 +8,7 @@ export default function handleNotifyUserInMeeting({ body }) {
|
||||
notificationType: String,
|
||||
icon: String,
|
||||
messageId: String,
|
||||
messageDescription: String,
|
||||
messageValues: Array,
|
||||
});
|
||||
return emitNotification(body, 'NotifyUserInMeeting');
|
||||
|
@ -11,7 +11,7 @@ export default withTracker(() => {
|
||||
<FormattedMessage
|
||||
id={obj.messageId}
|
||||
values={obj.messageValues}
|
||||
description="Notification for when the recording starts"
|
||||
description={obj.messageDescription}
|
||||
/>,
|
||||
obj.notificationType,
|
||||
obj.icon,
|
||||
|
Loading…
Reference in New Issue
Block a user