Skip to content

Commit 4f52dfd

Browse files
committed
1.[UPDATE]:add UNSENT as local message identifier 2.[UPDATE]:mark unread as sent
1 parent 2c2b65b commit 4f52dfd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

chatting-client/chattingmsgitem.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ void ChattingMsgItem::setupMsgStatus(const MessageStatus status) {
120120
return;
121121
}
122122

123-
if (status == MessageStatus::UNREAD) {
123+
if(status == MessageStatus::UNSENT){
124+
125+
}
126+
else if (status == MessageStatus::SENT) {
124127
Tools::setQLableImage(m_statusLabel, "unread.png");
125128
} else if (status == MessageStatus::READ) {
126129
Tools::setQLableImage(m_statusLabel, "read.png");

chatting-client/chattingmsgitem.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
#include <QWidget>
1010

1111
enum class MessageStatus {
12-
UNREAD,
12+
UNSENT,
13+
SENT,
1314
READ,
1415
FAILED // message sent error
1516
};

0 commit comments

Comments
 (0)