shouldShowTime static method
Implementation
static bool shouldShowTime(RCIMIWMessage current, RCIMIWMessage previous) {
// 如果两条消息间隔超过3分钟,显示时间
return ((current.sentTime ?? 0) - (previous.sentTime ?? 0).abs()) >
3 * 60 * 1000;
}
static bool shouldShowTime(RCIMIWMessage current, RCIMIWMessage previous) {
// 如果两条消息间隔超过3分钟,显示时间
return ((current.sentTime ?? 0) - (previous.sentTime ?? 0).abs()) >
3 * 60 * 1000;
}