Add TODO comment to messages_in_narrow_backend

(imported from commit 7e80a84fdd8f6ba347bb4ecb0f9238923b825871)
This commit is contained in:
Zev Benjamin 2013-12-13 17:55:04 -05:00
parent 81010c6c3d
commit df4d4beb6c

View File

@ -655,6 +655,10 @@ def messages_in_narrow_backend(request, user_profile,
# Note that this function will only work on messages the user
# actually received
# TODO: We assume that the narrow is a search. For now this works because
# the browser only ever calls this function for searches, since it can't
# apply that narrow operator itself.
query = select([column("message_id"), column("subject"), column("rendered_content")],
and_(column("user_profile_id") == literal(user_profile.id),
column("message_id").in_(msg_ids)),