所有者が current_user でない場合にクエリを実行する適切な構文は次のとおりです。
.where(owner_id: != current_user.id, recipient_id: current_user.id, owner_type: "User")
私はこれを試しました:
where(['current_user.id <> ?', :owner_id ], recipient_id: current_user.id, owner_type: "User")
そして得た:
undefined method `%' for ["current_user.id <> ?", :owner_id]:Array