mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-15 00:47:46 +01:00
Don't send CHATHISTORY command if server doesn't support it
This commit is contained in:
parent
9cc44fbe98
commit
8fa91f7c4a
@ -472,7 +472,7 @@ export default class App extends Component {
|
||||
}
|
||||
|
||||
var receipt = this.getReceipt(channel, ReceiptType.READ);
|
||||
if (msg.prefix.name == this.client.nick && receipt) {
|
||||
if (msg.prefix.name == this.client.nick && receipt && this.client.enabledCaps["draft/chathistory"] && this.client.enabledCaps["server-time"]) {
|
||||
var after = receipt;
|
||||
var before = { time: msg.tags.time || irc.formatDate(new Date()) };
|
||||
this.fetchHistoryBetween(channel, after, before, CHATHISTORY_MAX_SIZE).catch((err) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user