Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
25bf0096
Commit
25bf0096
authored
3 years ago
by
Tainan Felipe
Browse files
Options
Downloads
Patches
Plain Diff
Add field to toggle the download of the public chat message
parent
93c9aeca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bigbluebutton-html5/imports/ui/components/chat/chat-dropdown/component.jsx
+20
-5
20 additions, 5 deletions
...l5/imports/ui/components/chat/chat-dropdown/component.jsx
bigbluebutton-html5/private/config/settings.yml
+1
-0
1 addition, 0 deletions
bigbluebutton-html5/private/config/settings.yml
with
21 additions
and
5 deletions
bigbluebutton-html5/imports/ui/components/chat/chat-dropdown/component.jsx
+
20
−
5
View file @
25bf0096
...
...
@@ -31,6 +31,9 @@ const intlMessages = defineMessages({
},
});
const
CHAT_CONFIG
=
Meteor
.
settings
.
public
.
chat
;
const
ENABLE_SAVE_AND_COPY_PUBLIC_CHAT
=
CHAT_CONFIG
.
enableSaveAndCopyPublicChat
;
class
ChatDropdown
extends
PureComponent
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -82,13 +85,21 @@ class ChatDropdown extends PureComponent {
getAvailableActions
()
{
const
{
intl
,
isMeteorConnected
,
amIModerator
,
meetingIsBreakout
,
meetingName
,
timeWindowsValues
,
users
,
intl
,
isMeteorConnected
,
amIModerator
,
meetingIsBreakout
,
meetingName
,
timeWindowsValues
,
users
,
}
=
this
.
props
;
const
clearIcon
=
'
delete
'
;
const
saveIcon
=
'
download
'
;
const
copyIcon
=
'
copy
'
;
return
_
.
compact
([
ENABLE_SAVE_AND_COPY_PUBLIC_CHAT
&&
(
<
DropdownListItem
data-test
=
"chatSave"
icon
=
{
saveIcon
}
...
...
@@ -103,19 +114,23 @@ class ChatDropdown extends PureComponent {
link
.
setAttribute
(
'
download
'
,
`bbb-
${
meetingName
}
[public-chat]_
${
dateString
}
.txt`
);
link
.
setAttribute
(
'
href
'
,
`data:
${
mimeType
}
;charset=utf-8,`
+
`
${
encodeURIComponent
(
ChatService
.
exportChat
(
timeWindowsValues
,
users
,
intl
))}
`
,
`data:
${
mimeType
}
;charset=utf-8,`
+
`
${
encodeURIComponent
(
ChatService
.
exportChat
(
timeWindowsValues
,
users
,
intl
))}
`
,
);
link
.
dispatchEvent
(
new
MouseEvent
(
'
click
'
,
{
bubbles
:
true
,
cancelable
:
true
,
view
:
window
}));
}
}
/>,
/>
),
ENABLE_SAVE_AND_COPY_PUBLIC_CHAT
&&
(
<
DropdownListItem
data-test
=
"chatCopy"
icon
=
{
copyIcon
}
id
=
"clipboardButton"
label
=
{
intl
.
formatMessage
(
intlMessages
.
copy
)
}
key
=
{
this
.
actionsKey
[
1
]
}
/>,
/>
),
!
meetingIsBreakout
&&
amIModerator
&&
isMeteorConnected
?
(
<
DropdownListItem
data-test
=
"chatClear"
...
...
This diff is collapsed.
Click to expand it.
bigbluebutton-html5/private/config/settings.yml
+
1
−
0
View file @
25bf0096
...
...
@@ -396,6 +396,7 @@ public:
enabled
:
true
itemsPerPage
:
100
timeBetweenFetchs
:
1000
enableSaveAndCopyPublicChat
:
false
bufferChatInsertsMs
:
0
startClosed
:
false
min_message_length
:
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment