protected AVIMChatRoom(AVIMClient client, String conversationId){ super(client, conversationId); setTransientForInit(true); }
conversation = new AVIMServiceConversation(AVIMClient.getInstance(clientId), conversationId); } else if (transientValue > 0) { conversation = new AVIMChatRoom(AVIMClient.getInstance(clientId), conversationId); } else { conversation = new AVIMConversation(AVIMClient.getInstance(clientId), conversationId);
private AVIMConversation getConversation(String conversationId, boolean isTransient, boolean isTemporary, boolean isSystem) { if (!isConversationSync) { syncConversationCache(); } AVIMConversation conversation = conversationCache.get(conversationId); if (conversation != null) { return conversation; } else if (AVUtils.isBlankString(conversationId)) { LogUtil.log.w("conversationId is null"); return null; } else { conversation = null; if (isSystem) { conversation = new AVIMServiceConversation(this, conversationId); } else if (isTemporary || conversationId.startsWith(Conversation.TEMPCONV_ID_PREFIX)) { conversation = new AVIMTemporaryConversation(this, conversationId); } else if (isTransient) { conversation = new AVIMChatRoom(this, conversationId); } else { conversation = new AVIMConversation(this, conversationId); } AVIMConversation elderConversation = conversationCache.putIfAbsent(conversationId, conversation); return elderConversation == null ? conversation : elderConversation; } }
originConv = new AVIMTemporaryConversation(client, conversationId); } else if (transientConv) { originConv = new AVIMChatRoom(client, conversationId); } else { originConv = new AVIMConversation(client, conversationId);