mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Add server creation button.
Add profile links / app links back. Add quoting / mentioning back.
This commit is contained in:
@@ -138,12 +138,12 @@ function ContextMenus(props: WithDispatcher) {
|
||||
|
||||
case "mention":
|
||||
{
|
||||
// edit draft
|
||||
/*InternalEventEmitter.emit(
|
||||
"append_messagebox",
|
||||
internalEmit(
|
||||
"MessageBox",
|
||||
"append",
|
||||
`<@${data.user}>`,
|
||||
"mention"
|
||||
);*/
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -152,12 +152,12 @@ function ContextMenus(props: WithDispatcher) {
|
||||
break;
|
||||
case "quote_message":
|
||||
{
|
||||
// edit draft
|
||||
/*InternalEventEmitter.emit(
|
||||
"append_messagebox",
|
||||
internalEmit(
|
||||
"MessageBox",
|
||||
"append",
|
||||
data.content,
|
||||
"quote"
|
||||
);*/
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -190,10 +190,10 @@ function ContextMenus(props: WithDispatcher) {
|
||||
|
||||
case "copy_file_link":
|
||||
{
|
||||
const { _id, filename } = data.attachment;
|
||||
const { filename } = data.attachment;
|
||||
writeClipboard(
|
||||
// ! FIXME: do from r.js
|
||||
client.generateFileURL(data.attachment) + '/${encodeURI(filename)}',
|
||||
client.generateFileURL(data.attachment) + `/${encodeURI(filename)}`,
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user