mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 05:53:52 +08:00
FEATURE: Live updates for user's messages page.
https://meta.discourse.org/t/group-inbox-messages-not-updated-for-new-posts/38189
This commit is contained in:
@ -10,11 +10,11 @@ describe UserArchivedMessage do
|
||||
target_usernames: [user2.username, user.username].join(","),
|
||||
archetype: Archetype.private_message).topic
|
||||
|
||||
UserArchivedMessage.archive!(user.id, topic.id)
|
||||
UserArchivedMessage.archive!(user.id, topic)
|
||||
expect(topic.message_archived?(user)).to eq(true)
|
||||
|
||||
TopicUser.change(user.id, topic.id, notification_level: TopicUser.notification_levels[:muted])
|
||||
UserArchivedMessage.move_to_inbox!(user.id, topic.id)
|
||||
UserArchivedMessage.move_to_inbox!(user.id, topic)
|
||||
expect(topic.message_archived?(user)).to eq(true)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user