Skip to content

Commit

Permalink
fix: チャットの上限緩和
Browse files Browse the repository at this point in the history
  • Loading branch information
nacika-ins committed Mar 28, 2024
1 parent bdd1eec commit 852dac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/messaging/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ function attach() {
// @ts-ignore
connection.on('read', onRead);
os.api('messaging/history', { group: false }).then((userMessages) => {
os.api('messaging/history', { group: true })
os.api('messaging/history', { group: false, limit: 100 }).then((userMessages) => {
os.api('messaging/history', { group: true, limit: 100 })
.then((groupMessages) => {
const _messages = userMessages.concat(groupMessages);
_messages.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
Expand Down

0 comments on commit 852dac6

Please sign in to comment.