Skip to content

Commit

Permalink
Merge pull request #1796 from MTG/issue1755
Browse files Browse the repository at this point in the history
message reply recipient resolution
  • Loading branch information
quimmrc authored Nov 27, 2024
2 parents a656ac8 + 8696c92 commit 09ad86d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion messages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ def new_message(request, username=None, message_id=None):

if message.user_from != request.user and message.user_to != request.user:
raise Http404

elif message.user_from == request.user:
to = message.user_to.username
else:
to = message.user_from.username

body = message.body.body.replace("\r\n", "\n").replace("\r", "\n")
body = quote_message_for_reply(body, message.user_from.username)

Expand Down

0 comments on commit 09ad86d

Please sign in to comment.