We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b26163 commit 0e67f96Copy full SHA for 0e67f96
projects/stream-chat-angular/src/lib/channel.service.ts
@@ -1451,7 +1451,7 @@ export class ChannelService<
1451
async getMessageReactions(messageId: string) {
1452
const reactions: ReactionResponse<T>[] = [];
1453
const limit = 300;
1454
- const offset = 0;
+ let offset = 0;
1455
const reactionsLimit = ChannelService.MAX_MESSAGE_REACTIONS_TO_FETCH;
1456
let lastPageSize = limit;
1457
@@ -1465,6 +1465,7 @@ export class ChannelService<
1465
if (lastPageSize > 0) {
1466
reactions.push(...response!.reactions);
1467
}
1468
+ offset += lastPageSize;
1469
} catch (e) {
1470
this.notificationService.addTemporaryNotification(
1471
'Error loading reactions'
0 commit comments