Skip to content

Commit

Permalink
feat(export): display max message id of chat. #129
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Mar 17, 2023
1 parent d9e8d59 commit 514d774
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/chat/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ func Export(ctx context.Context, opts *ExportOptions) error {
}
iter := builder.Iter()

// TODO(iyear): temp solution for calculating protected message id
total, err := iter.Total(ctx)
if err != nil {
return err
}
pw.Log(color.MagentaString("[DEBUG] max message id of chat: %d", total))

f, err := os.Create(opts.Output)
if err != nil {
return err
Expand Down

0 comments on commit 514d774

Please sign in to comment.