mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 09:11:17 +08:00
DEV: Rename direct message related models
This is a followup of the previous refactor where we created two new models to handle all the dedicated logic that was present in the `ChatChannel` model. For the sake of consistency, `DMChannel` has been renamed to `DirectMessageChannel` and the previous `DirectMessageChannel` model is now named `DirectMessage`. This should help reasoning about direct messages.
This commit is contained in:

committed by
Loïc Guitaut

parent
7e992cb299
commit
abcaa1a961
@ -108,8 +108,7 @@ describe ChatChannelMembershipsQuery do
|
||||
end
|
||||
|
||||
context "when chatable is direct channel" do
|
||||
fab!(:chatable_1) { Fabricate(:direct_message_channel, users: [user_1, user_2]) }
|
||||
fab!(:channel_1) { Fabricate(:dm_channel, chatable: chatable_1) }
|
||||
fab!(:channel_1) { Fabricate(:direct_message_channel, users: [user_1, user_2]) }
|
||||
|
||||
context "when no memberships exists" do
|
||||
it "returns an empty array" do
|
||||
|
Reference in New Issue
Block a user