We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f52dfd commit dd54b1dCopy full SHA for dd54b1d
1 file changed
chatting-client/chattingstackpage.cpp
@@ -182,10 +182,18 @@ void ChattingStackPage::setupBubbleFrameOnItem(
182
} else if (type == MsgType::FILE) {
183
}
184
185
- if (bubble) {
186
- item->setupBubbleWidget(bubble);
187
- ui->chatting_record->pushBackItem(item);
+ if (!bubble) return;
+ item->setupBubbleWidget(bubble);
+
188
+ if(value->isOnLocal()){
189
+ item->setupMsgStatus(MessageStatus::UNSENT);
190
+ }
191
+ else{
192
+ /*maybe more logic in the future*/
193
+ item->setupMsgStatus(MessageStatus::SENT);
194
195
196
+ ui->chatting_record->pushBackItem(item);
197
198
199
void ChattingStackPage::distribute(std::shared_ptr<ChattingBaseType> value) {
0 commit comments