且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用邮箱访问已发送邮件页面上的收件人

更新时间:2022-06-17 08:07:40

您在对话中有参与者(您称其为字母).

You have the participants in conversations (you call it letters).

只需过滤当前用户,您就会好起来.

Just filter the current user and you'll be good.

conversation = user.mailbox.sentbox.first
filtered_participants = conversation.participants.reject do |u| 
  u.id == current_user.id
end