mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: do not refresh metadata of not followed channel (#20766)
This commit is contained in:
parent
d4c6511d31
commit
b5c4e1b813
|
@ -270,14 +270,16 @@ export default class ChatSubscriptionsManager extends Service {
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
_onChannelMetadata(busData) {
|
_onChannelMetadata(busData) {
|
||||||
this.chatChannelsManager.find(busData.chat_channel_id).then((channel) => {
|
this.chatChannelsManager
|
||||||
if (channel) {
|
.find(busData.chat_channel_id, { fetchIfNotFound: false })
|
||||||
channel.setProperties({
|
.then((channel) => {
|
||||||
memberships_count: busData.memberships_count,
|
if (channel) {
|
||||||
});
|
channel.setProperties({
|
||||||
this.appEvents.trigger("chat:refresh-channel-members");
|
memberships_count: busData.memberships_count,
|
||||||
}
|
});
|
||||||
});
|
this.appEvents.trigger("chat:refresh-channel-members");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
|
|
Loading…
Reference in New Issue
Block a user