no message

This commit is contained in:
kuaifan 2024-01-15 21:22:14 +08:00
parent 2975a0eaf9
commit 569af135bd
4 changed files with 11 additions and 5 deletions

View File

@ -37,9 +37,14 @@ class IndexController extends InvokeController
if ($action) { if ($action) {
$app .= "__" . $action; $app .= "__" . $action;
} }
if ($app === 'manifest.txt') { switch ($app) {
$app = 'manifest'; case 'manifest.txt':
$child = 'txt'; $app = 'manifest';
$child = 'txt';
break;
case 'default':
return '';
} }
if (!method_exists($this, $app)) { if (!method_exists($this, $app)) {
$app = method_exists($this, $method) ? $method : 'main'; $app = method_exists($this, $method) ? $method : 'main';

2
electron/build.js vendored
View File

@ -203,8 +203,6 @@ function startBuild(data) {
fs.writeFileSync(electronDir + "/config.js", "window.systemInfo = " + JSON.stringify(systemInfo), 'utf8'); fs.writeFileSync(electronDir + "/config.js", "window.systemInfo = " + JSON.stringify(systemInfo), 'utf8');
fs.writeFileSync(nativeCachePath, utils.formatUrl(data.url)); fs.writeFileSync(nativeCachePath, utils.formatUrl(data.url));
fs.writeFileSync(devloadCachePath, "", 'utf8'); fs.writeFileSync(devloadCachePath, "", 'utf8');
// default (fix "Failed to load resource: net::ERR_FILE_NOT_FOUND" report)
fs.writeFileSync(electronDir + "/default", "default", 'utf8');
// index.html // index.html
let manifestFile = path.resolve(electronDir, "manifest.json"); let manifestFile = path.resolve(electronDir, "manifest.json");
if (!fs.existsSync(manifestFile)) { if (!fs.existsSync(manifestFile)) {

View File

@ -876,6 +876,7 @@ export default {
} }
this.emojiTimer && clearTimeout(this.emojiTimer) this.emojiTimer && clearTimeout(this.emojiTimer)
this.emojiTimer = setTimeout(_ => { this.emojiTimer = setTimeout(_ => {
this.emojiTimer = null
if (/<img/i.test(text)) { if (/<img/i.test(text)) {
this.emojiQuickShow = false this.emojiQuickShow = false
return return
@ -1036,6 +1037,7 @@ export default {
}, },
onSend(type) { onSend(type) {
this.emojiTimer && clearTimeout(this.emojiTimer)
this.emojiQuickShow = false; this.emojiQuickShow = false;
// //
setTimeout(_ => { setTimeout(_ => {

View File

@ -940,6 +940,7 @@
.file-thumb { .file-thumb {
width: 36px; width: 36px;
flex-shrink: 0;
} }
.file-info { .file-info {