Showing
1 changed file
with
3 additions
and
3 deletions
@@ -196,11 +196,11 @@ class YHMIm_Relay | @@ -196,11 +196,11 @@ class YHMIm_Relay | ||
196 | $queue->ack($envelope->getDeliveryTag()); | 196 | $queue->ack($envelope->getDeliveryTag()); |
197 | return; | 197 | return; |
198 | } | 198 | } |
199 | - /* else if(isset($messageData['talk_id']) && isset($messageData['talk_id'])) | 199 | + else if(isset($messageData['talk_id']) && isset($messageData['talk_id']) && $messageData['from'] != 'user:0') |
200 | { | 200 | { |
201 | - //不接受会话中的消息 | 201 | + //不接受普通用户会话中的消息 |
202 | return; | 202 | return; |
203 | - }*/ | 203 | + } |
204 | $agreement = YHMIm_Agreement::factory($messageData); | 204 | $agreement = YHMIm_Agreement::factory($messageData); |
205 | $queueData = $agreement->getQueueData(); | 205 | $queueData = $agreement->getQueueData(); |
206 | $queue->ack($envelope->getDeliveryTag()); | 206 | $queue->ack($envelope->getDeliveryTag()); |
-
Please register or login to post a comment