From 83b9d5c682b21d88133f24da0f94dd56bd79e687 Mon Sep 17 00:00:00 2001
From: 单军华
Date: Thu, 19 Jul 2018 13:38:55 +0800
Subject: [PATCH] change
---
screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Model/EaseConversationModel.m | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Model/EaseConversationModel.m b/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Model/EaseConversationModel.m
new file mode 100755
index 0000000..7ab9656
--- /dev/null
+++ b/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Model/EaseConversationModel.m
@@ -0,0 +1,40 @@
+/************************************************************
+ * * Hyphenate CONFIDENTIAL
+ * __________________
+ * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
+ *
+ * NOTICE: All information contained herein is, and remains
+ * the property of Hyphenate Inc.
+ * Dissemination of this information or reproduction of this material
+ * is strictly forbidden unless prior written permission is obtained
+ * from Hyphenate Inc.
+ */
+
+#import "EaseConversationModel.h"
+
+#if ENABLE_LITE == 1
+#import <HyphenateLite/EMConversation.h>
+#else
+#import <Hyphenate/EMConversation.h>
+#endif
+
+@implementation EaseConversationModel
+
+- (instancetype)initWithConversation:(EMConversation *)conversation
+{
+ self = [super init];
+ if (self) {
+ _conversation = conversation;
+ _title = _conversation.conversationId;
+ if (conversation.type == EMConversationTypeChat) {
+ _avatarImage = [UIImage easeImageNamed:@"EaseUIResource.bundle/user"];
+ }
+ else{
+ _avatarImage = [UIImage easeImageNamed:@"EaseUIResource.bundle/group"];
+ }
+ }
+
+ return self;
+}
+
+@end
--
Gitblit v1.8.0