jeremy 1 year ago
parent
commit
030f13d675
1 changed files with 3 additions and 1 deletions
  1. 3 1
      WingRtcService/PushMessage/EducationPushMessage.cs

+ 3 - 1
WingRtcService/PushMessage/EducationPushMessage.cs

@@ -100,10 +100,12 @@ namespace WingRtcService.PushMessage
                         MergedVideoOutputHeight = deviceInfo.MergedVideoOutputHeight,
                         IsControllingParameter = accepter.IsControllingParameter
                     };
+                    var tokenInfo = CacheMaintenance.Instance.Get<ITokensManager>().Where(x => x.ClientId == deviceCode)?.FirstOrDefault();                    
                     var message = new JoinLiveCourseNotification
                     {
                         CourseCode = _room.LiveRoomCode,
-                        Joiner = accepterInfo
+                        Joiner = accepterInfo,
+                        IsOldPlatform = tokenInfo?.IsOldPlatform ?? false
                     };
                     PushMessage(userInfos, message);
                 }