Skip to content

Commit

Permalink
Channel participants now use the reindexed index
Browse files Browse the repository at this point in the history
  • Loading branch information
mlomb committed Aug 17, 2023
1 parent 7722e12 commit aaa1326
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# v1.0.4 (YYYY/MM/DD) [IN DEVELOPMENT]

- Bugfix: DM/Group channel labels (Alice & Bob) were showing an invalid picture.
- Added calls support for Discord and Telegram: [#76](https://github.com/mlomb/chat-analytics/issues/76) [#88](https://github.com/mlomb/chat-analytics/pull/88)
- Time spent on calls over time
- Number of calls initiated over time
Expand Down
5 changes: 4 additions & 1 deletion pipeline/process/DatabaseBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ export class DatabaseBuilder {
type: channel.type,
avatar: channel.avatar,
guildIndex: this.guildsRank[this.guilds.getIndex(channel.guildId)!],
participants: participants.length > 0 ? participants : undefined,
participants:
participants.length > 0
? participants.map((oldAuthorIndex) => this.authorsRank[oldAuthorIndex])
: undefined,

// the following are set making the final messages
msgAddr: undefined,
Expand Down

0 comments on commit aaa1326

Please sign in to comment.