api message limit pushed to 3000

This commit is contained in:
كارل مبارك 2021-10-31 11:28:39 +01:00
parent 3954f43736
commit 761160b7b6
7 changed files with 9 additions and 6 deletions

View file

@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>ChattyPub</title><link rel="stylesheet/css-polyfills" type="text/css" href="extra-styles.css"><script src="css-polyfills.js"></script><link href="/css/app.c01369df.css" rel="preload" as="style"><link href="/css/chunk-vendors.fa36ffc8.css" rel="preload" as="style"><link href="/js/app.3eda33f2.js" rel="preload" as="script"><link href="/js/chunk-vendors.e35cf9b3.js" rel="preload" as="script"><link href="/css/chunk-vendors.fa36ffc8.css" rel="stylesheet"><link href="/css/app.c01369df.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Chattypub doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.e35cf9b3.js"></script><script src="/js/app.3eda33f2.js"></script></body></html>
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>ChattyPub</title><link rel="stylesheet/css-polyfills" type="text/css" href="extra-styles.css"><script src="css-polyfills.js"></script><link href="/css/app.c01369df.css" rel="preload" as="style"><link href="/css/chunk-vendors.fa36ffc8.css" rel="preload" as="style"><link href="/js/app.62463567.js" rel="preload" as="script"><link href="/js/chunk-vendors.e35cf9b3.js" rel="preload" as="script"><link href="/css/chunk-vendors.fa36ffc8.css" rel="stylesheet"><link href="/css/app.c01369df.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Chattypub doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.e35cf9b3.js"></script><script src="/js/app.62463567.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
front/dist/js/app.62463567.js vendored Normal file

File diff suppressed because one or more lines are too long

1
front/dist/js/app.62463567.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -108,6 +108,7 @@ export default {
});
api.zulip.getAllMsgs(this.zulipClient, stream.name).then((result) => {
console.log(result.messages.length)
for (let m = 0; m < result.messages.length; m++) {
const message = result.messages[m];
if (message.subject == "rules") {

View file

@ -52,7 +52,8 @@ const
.messages
.retrieve(params || {
anchor: "newest",
num_before: 1000,
// num_before: 1000,
num_before: 3000,
num_after: 0,
// apply_markdown: false,
narrow: [
@ -71,7 +72,8 @@ const
.messages
.retrieve(params || {
anchor: "newest",
num_before: 1000,
// num_before: 1000,
num_before: 3000,
num_after: 0,
// apply_markdown: false,
narrow: [{ operator: "stream", operand: stream }],