频道automic状态为1所有消息都不发送到owner,无论callback是否存在
This commit is contained in:
@@ -577,8 +577,7 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
if (channelInfo != null) {
|
if (channelInfo != null) {
|
||||||
if (channelInfo.getOwner().equals(fromUser)) {
|
if (channelInfo.getOwner().equals(fromUser)) {
|
||||||
if(requestSourceType == ProtoConstants.RequestSourceType.Request_From_Channel
|
if(requestSourceType == ProtoConstants.RequestSourceType.Request_From_Channel
|
||||||
&& !StringUtil.isNullOrEmpty(channelInfo.getCallback())
|
&& channelInfo.getAutomatic() != 0) {
|
||||||
&& channelInfo.getAutomatic() == 1) {
|
|
||||||
LOG.info("Channel api message not send to the owner when automatic");
|
LOG.info("Channel api message not send to the owner when automatic");
|
||||||
} else {
|
} else {
|
||||||
notifyReceivers.add(fromUser);
|
notifyReceivers.add(fromUser);
|
||||||
@@ -608,8 +607,10 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
notifyReceivers.add(fromUser);
|
notifyReceivers.add(fromUser);
|
||||||
if (StringUtil.isNullOrEmpty(channelInfo.getCallback()) || channelInfo.getAutomatic() == 0) {
|
if (channelInfo.getAutomatic() == 0) {
|
||||||
notifyReceivers.add(channelInfo.getOwner());
|
notifyReceivers.add(channelInfo.getOwner());
|
||||||
|
} else {
|
||||||
|
LOG.info("Channel api message not send to the owner when automatic");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user