Skip to content

Commit

Permalink
fix(usr.source): can not get user's name
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Aug 28, 2022
1 parent ea097f6 commit cf9b374
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/usr/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func Start(ctx context.Context, cfg string, from int, to int) error {
if _, blocked := blockids[utils.Telegram.GetInputPeerID(d.Peer)]; blocked {
continue
}
if d.Deleted() {
continue
}

d := d
wg.Go(func() error {
Expand Down Expand Up @@ -158,12 +161,9 @@ func fetch(ctx context.Context, _search storage.Search, pw progress.Writer,
if !ok {
continue
}
data, ok := index.Message(m, tg.Entities{
Short: false,
Users: e.Users(),
Chats: e.Chats(),
Channels: e.Channels(),
})
// TODO(iyear): support get name and other info in `source`
// peer.Entities is not available for message's peer
data, ok := index.Message(m, tg.Entities{})
if !ok {
continue
}
Expand Down

0 comments on commit cf9b374

Please sign in to comment.