unread icon indicating copy to clipboard operation
unread copied to clipboard

Problem in usage examples

Open saneef opened this issue 7 years ago • 2 comments

Currently, when a new user(reader) is created, all messages (readables) created before that point in time will be marked as read. It can only be disabled by overriding the setup_new_reader function in the reader.

So the in the example have_not_read method should ideally return empty.

## Get users that have not read a given message
user1 = User.create!
user2 = User.create!

User.have_not_read(message1)
# => [ user1, user2 ]

saneef avatar May 01 '17 08:05 saneef

Yes this was very confusing. Took me a while to track down setup_new_reader since it's not documented in the readme.

ishields avatar Mar 12 '20 19:03 ishields

just ran into this as well. would be great to document!

iamnader avatar Feb 18 '21 14:02 iamnader