Skip to content

Commit 9f8b9dd

Browse files
committed
1.[FORMATTING]
1 parent dd54b1d commit 9f8b9dd

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

chatting-client/chattingmsgitem.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ void ChattingMsgItem::setupMsgStatus(const MessageStatus status) {
120120
return;
121121
}
122122

123-
if(status == MessageStatus::UNSENT){
123+
if (status == MessageStatus::UNSENT) {
124124

125-
}
126-
else if (status == MessageStatus::SENT) {
125+
} else if (status == MessageStatus::SENT) {
127126
Tools::setQLableImage(m_statusLabel, "unread.png");
128127
} else if (status == MessageStatus::READ) {
129128
Tools::setQLableImage(m_statusLabel, "read.png");

chatting-client/chattingstackpage.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ void ChattingStackPage::setupBubbleFrameOnItem(
182182
} else if (type == MsgType::FILE) {
183183
}
184184

185-
if (!bubble) return;
185+
if (!bubble)
186+
return;
186187
item->setupBubbleWidget(bubble);
187188

188-
if(value->isOnLocal()){
189-
item->setupMsgStatus(MessageStatus::UNSENT);
190-
}
191-
else{
192-
/*maybe more logic in the future*/
189+
if (value->isOnLocal()) {
190+
item->setupMsgStatus(MessageStatus::UNSENT);
191+
} else {
192+
/*maybe more logic in the future*/
193193
item->setupMsgStatus(MessageStatus::SENT);
194194
}
195195

0 commit comments

Comments
 (0)