Bug fixes
This commit is contained in:
parent
350ae835b3
commit
a2be4e8d51
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 1.19.1
|
||||||
|
* Performance improvement for players who connect multiple characters at the same time
|
||||||
|
* Limit max height of the status message banner on character profile
|
||||||
|
|
||||||
## 1.19.0
|
## 1.19.0
|
||||||
* Fixed formatting for body type comparison
|
* Fixed formatting for body type comparison
|
||||||
* Fixed auto-responder failing to send a message in certain cases
|
* Fixed auto-responder failing to send a message in certain cases
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Download
|
# Download
|
||||||
[Windows](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.0/F-Chat-Rising-1.19.0-win.exe) (82 MB)
|
[Windows](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.1/F-Chat-Rising-1.19.1-win.exe) (82 MB)
|
||||||
| [MacOS Intel](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.0/F-Chat-Rising-1.19.0-macos-intel.dmg) (82 MB)
|
| [MacOS Intel](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.1/F-Chat-Rising-1.19.1-macos-intel.dmg) (82 MB)
|
||||||
| [MacOS M1](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.0/F-Chat-Rising-1.19.0-macos-m1.dmg) (84 MB)
|
| [MacOS M1](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.1/F-Chat-Rising-1.19.1-macos-m1.dmg) (84 MB)
|
||||||
| [Linux](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.0/F-Chat-Rising-1.19.0-linux.AppImage) (82 MB)
|
| [Linux](https://github.com/mrstallion/fchat-rising/releases/download/v1.19.1/F-Chat-Rising-1.19.1-linux.AppImage) (82 MB)
|
||||||
|
|
||||||
|
|
||||||
# F-Chat Rising
|
# F-Chat Rising
|
||||||
|
|
|
@ -42,7 +42,7 @@ export interface CharacterDataEvent {
|
||||||
|
|
||||||
|
|
||||||
export interface SelectConversationEvent extends EventBusEvent {
|
export interface SelectConversationEvent extends EventBusEvent {
|
||||||
conversation: Conversation;
|
conversation: Conversation | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EventCallback = (data: any) => void | Promise<void>;
|
export type EventCallback = (data: any) => void | Promise<void>;
|
||||||
|
|
|
@ -50,7 +50,7 @@ theme: jekyll-theme-slate
|
||||||
changelog: https://github.com/mrstallion/fchat-rising/blob/master/CHANGELOG.md
|
changelog: https://github.com/mrstallion/fchat-rising/blob/master/CHANGELOG.md
|
||||||
|
|
||||||
download:
|
download:
|
||||||
version: 1.19.0
|
version: 1.19.1
|
||||||
|
|
||||||
url: https://github.com/mrstallion/fchat-rising/releases/download/v%VERSION%/F-Chat-Rising-%VERSION%-%PLATFORM_TAIL%
|
url: https://github.com/mrstallion/fchat-rising/releases/download/v%VERSION%/F-Chat-Rising-%VERSION%-%PLATFORM_TAIL%
|
||||||
|
|
||||||
|
|
|
@ -344,6 +344,14 @@
|
||||||
// log.info('INDEXVUE ZOOM UPDATE', zoomLevel);
|
// log.info('INDEXVUE ZOOM UPDATE', zoomLevel);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
electron.ipcRenderer.on('active-tab', () => {
|
||||||
|
core.cache.setTabActive(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
electron.ipcRenderer.on('inactive-tab', () => {
|
||||||
|
core.cache.setTabActive(false);
|
||||||
|
});
|
||||||
|
|
||||||
window.addEventListener('keydown', (e) => {
|
window.addEventListener('keydown', (e) => {
|
||||||
const key = getKey(e);
|
const key = getKey(e);
|
||||||
|
|
||||||
|
@ -641,6 +649,8 @@
|
||||||
.status-text {
|
.status-text {
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
display: block;
|
display: block;
|
||||||
|
max-height: 3em;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Sortable from 'sortablejs';
|
import Sortable from 'sortablejs';
|
||||||
|
import _ from 'lodash';
|
||||||
|
|
||||||
import {Component, Hook} from '@f-list/vue-ts';
|
import {Component, Hook} from '@f-list/vue-ts';
|
||||||
import * as electron from 'electron';
|
import * as electron from 'electron';
|
||||||
|
@ -350,6 +351,11 @@
|
||||||
browserWindow.setBrowserView(tab.view);
|
browserWindow.setBrowserView(tab.view);
|
||||||
tab.view.setBounds(getWindowBounds());
|
tab.view.setBounds(getWindowBounds());
|
||||||
tab.view.webContents.focus();
|
tab.view.webContents.focus();
|
||||||
|
|
||||||
|
// tab.view.webContents.send('active-tab', { webContentsId: tab.view.webContents.id });
|
||||||
|
_.each(this.tabs, (t) => t.view.webContents.send(t === tab ? 'active-tab' : 'inactive-tab'));
|
||||||
|
|
||||||
|
// electron.ipcRenderer.send('active-tab', { webContentsId: tab.view.webContents.id });
|
||||||
}
|
}
|
||||||
|
|
||||||
remove(tab: Tab, shouldConfirm: boolean = true): void {
|
remove(tab: Tab, shouldConfirm: boolean = true): void {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "fchat",
|
"name": "fchat",
|
||||||
"version": "1.19.0",
|
"version": "1.19.1",
|
||||||
"author": "The F-List Team and Mister Stallion (Esq.)",
|
"author": "The F-List Team and Mister Stallion (Esq.)",
|
||||||
"description": "F-List.net Chat Client",
|
"description": "F-List.net Chat Client",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
|
|
|
@ -277,7 +277,7 @@ export default class Connection implements Interfaces.Connection {
|
||||||
if(this.socket !== undefined && this.socket.readyState === WebSocketConnection.ReadyState.OPEN) {
|
if(this.socket !== undefined && this.socket.readyState === WebSocketConnection.ReadyState.OPEN) {
|
||||||
const msg = <string>command + (data !== undefined ? ` ${JSON.stringify(data)}` : '');
|
const msg = <string>command + (data !== undefined ? ` ${JSON.stringify(data)}` : '');
|
||||||
|
|
||||||
log.debug('socket.send', { data: msg });
|
log.silly('socket.send', { data: msg });
|
||||||
|
|
||||||
this.socket.send(msg);
|
this.socket.send(msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,18 @@ export class CacheManager {
|
||||||
protected fetchLog: Record<string, number> = {};
|
protected fetchLog: Record<string, number> = {};
|
||||||
protected ongoingLog: Record<string, true> = {};
|
protected ongoingLog: Record<string, true> = {};
|
||||||
|
|
||||||
|
protected isActiveTab = false;
|
||||||
|
|
||||||
|
setTabActive(isActive: boolean): void {
|
||||||
|
this.isActiveTab = isActive;
|
||||||
|
|
||||||
|
if (this.isActiveTab) {
|
||||||
|
void this.onSelectConversation({ conversation: core.conversations.selectedConversation });
|
||||||
|
} else {
|
||||||
|
void this.onSelectConversation({ conversation: null! });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
markLastPostTime(): void {
|
markLastPostTime(): void {
|
||||||
this.lastPost = new Date();
|
this.lastPost = new Date();
|
||||||
}
|
}
|
||||||
|
@ -369,7 +381,11 @@ export class CacheManager {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((!data.profile) && (core.conversations.selectedConversation === data.channel)) {
|
if (
|
||||||
|
(!data.profile) &&
|
||||||
|
(core.conversations.selectedConversation === data.channel) &&
|
||||||
|
(this.isActiveTab)
|
||||||
|
) {
|
||||||
await this.queueForFetching(message.sender.name, true, data.channel.channel.id);
|
await this.queueForFetching(message.sender.name, true, data.channel.channel.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -384,6 +400,7 @@ export class CacheManager {
|
||||||
|
|
||||||
async onSelectConversation(data: SelectConversationEvent): Promise<void> {
|
async onSelectConversation(data: SelectConversationEvent): Promise<void> {
|
||||||
const conversation = data.conversation;
|
const conversation = data.conversation;
|
||||||
|
|
||||||
const channel = _.get(conversation, 'channel') as (Channel.Channel | undefined);
|
const channel = _.get(conversation, 'channel') as (Channel.Channel | undefined);
|
||||||
const channelId = _.get(channel, 'id', '<missing>');
|
const channelId = _.get(channel, 'id', '<missing>');
|
||||||
|
|
||||||
|
@ -399,7 +416,7 @@ export class CacheManager {
|
||||||
// Add fetchers for unknown profiles in ads
|
// Add fetchers for unknown profiles in ads
|
||||||
await Bluebird.each(
|
await Bluebird.each(
|
||||||
_.filter(
|
_.filter(
|
||||||
conversation.messages,
|
conversation!.messages,
|
||||||
(m) => {
|
(m) => {
|
||||||
if (m.type !== Message.Type.Ad) {
|
if (m.type !== Message.Type.Ad) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "f-list-rising",
|
"name": "f-list-rising",
|
||||||
"version": "1.19.0",
|
"version": "1.19.1",
|
||||||
"author": "The F-List Team and and Mister Stallion (Esq.)",
|
"author": "The F-List Team and and Mister Stallion (Esq.)",
|
||||||
"description": "A heavily modded F-Chat 3.0 client for F-List",
|
"description": "A heavily modded F-Chat 3.0 client for F-List",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
Loading…
Reference in New Issue