images: implement sending from Matrix -> Telegram

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-06-17 17:22:47 -06:00
parent 5de193d087
commit 871a9705e3
4 changed files with 95 additions and 32 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ var _ updates.ChannelAccessHasher = (*scopedStore)(nil)
func (s *scopedStore) GetChannelAccessHash(ctx context.Context, userID int64, channelID int64) (accessHash int64, found bool, err error) {
s.assertUserIDMatches(userID)
err = s.db.QueryRow(ctx, getChannelAccessHashQuery, userID).Scan(&accessHash)
err = s.db.QueryRow(ctx, getChannelAccessHashQuery, userID, channelID).Scan(&accessHash)
if errors.Is(err, sql.ErrNoRows) {
return 0, false, nil
}