Skip to content

Commit 28ee95b

Browse files
guangyaoguangyao
authored andcommitted
Add default head icon
1 parent 5800e09 commit 28ee95b

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed
2.14 KB
Loading
2.8 KB
Loading

ios/RCTAuroraIMUI/DWCustomView/InputView/DWAudioRecorderManager.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ - (void)detectionVoice
140140
{
141141
timeCount = timeCount + 0.05;
142142
NSLog(@"timeCount:%f",timeCount);
143+
[self.audioRecorder currentTime];
143144
if (timeCount < maxRecordTime) {
144145
if (timeCount > 49) {
145146
[[NSNotificationCenter defaultCenter]postNotificationName:@"RecordLongNotification" object:@(maxRecordTime - timeCount)];
@@ -162,6 +163,7 @@ - (void)detectionVoice
162163
/// 停止录音
163164
- (void)audioRecorderStop
164165
{
166+
NSLog(@"----timeCount:%f",timeCount);
165167
// 释放计时器
166168
[self.audioRecorderTimer invalidate];
167169
self.audioRecorderTimer = nil;
@@ -172,6 +174,7 @@ - (void)audioRecorderStop
172174
// 获取录音时长
173175
self.audioRecorderTime = [self.audioRecorder currentTime];
174176
[self.audioRecorder stop];
177+
NSLog(@"----audioRecorderTime:%f",self.audioRecorderTime);
175178
// 停止录音后释放掉
176179
self.audioRecorder = nil;
177180
if (self.audioRecorderTime < 2) {//时间小于2秒

ios/RCTAuroraIMUI/IMUIMessageCollectionView/Views/IMUIBaseMessageCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ open class IMUIBaseMessageCell: UICollectionViewCell, IMUIMessageCellProtocal,Me
129129

130130
func setupData(with message: IMUIMessageModelProtocol) {
131131
// self.avatarImage.image = message.fromUser.Avatar()
132-
self.avatarImage.setImageURL(message.fromUser.Avatar())
132+
self.avatarImage.setImageURL(message.fromUser.Avatar(), placeholderImage: "defaultHead")
133133
self.bubbleView.backgroundColor = UIColor.clear
134134
self.timeLabel.text = message.timeString
135135
let timeW = widthWithFont(font: IMUIMessageCellLayout.timeStringFont, text: message.timeString)

0 commit comments

Comments
 (0)