internal messaging feature #2

Closed
chalmagean opened this Issue Apr 11, 2013 · 3 comments

Comments

Projects
None yet
2 participants

Hey,

I was wondering if it would be easy to have an internal messaging feature/system. To be more specific, I'd like to be able to have private messages with threads between accounts; say if you have clients and sellers and you want them to talk to each other based on some model (blog post, line item, order, etc).

Regads,
Cezar

Owner

the-teacher commented Apr 11, 2013

Accepted

Owner

the-teacher commented Apr 12, 2013

Cezar, I think the_comments can't be good solution for internal messaging. As I can see - internal messaging have many differences with comment system.

But, I think you can make something like internal messaging with this gem:

I suggest the following solution for you right now:

class User < ActiveRecord::Base
  has_many :talks                             # owner
  has_many :incoming_talks, (relation params) # recipient
end
class Talk < ActiveRecord::Base
  belongs_to :user       # owner
  belongs_to :recipient # recipient

  include TheCommentsCommentable
end

You can create private talks between users in your app. It can be fast solution for you.

But, I repeat - internal messaging have many differences - and I think it's good idea for another gem (the_messages, maybe :) )

Owner

the-teacher commented Oct 22, 2013

internal messaging planed in future with another gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment