|
@@ -771,7 +771,7 @@ export const closeLive = async (
|
|
|
*/
|
|
|
export const loopSyncLike = async () => {
|
|
|
// (runtime.likeCount !== runtime.lastLikeCount || runtime.likeCount === 0) &&
|
|
|
- if (state.user) {
|
|
|
+ if (state.user && runtime.joinedRoom) {
|
|
|
try {
|
|
|
await request.get("/api-web/imLiveBroadcastRoom/syncLike", {
|
|
|
hideLoading: true,
|
|
@@ -826,7 +826,7 @@ export const sendMessage = async (msg: any, type: SendMessageType = "text") => {
|
|
|
if (!msg) return;
|
|
|
const conversation = {
|
|
|
conversationType: RongIMLib.ConversationType.CHATROOM,
|
|
|
- targetId: runtime.joinedRoom?._roomId as string,
|
|
|
+ targetId: runtime.joinedRoom?.getRoomId() as string,
|
|
|
};
|
|
|
if (type === "text") {
|
|
|
message = new RongIMLib.TextMessage({
|