| 1191 | | else |
| 1192 | | { |
| 1193 | | emit autoCloseNotify(); |
| 1194 | | if (sendDone(e)) |
| 1195 | | { |
| 1196 | | emit eventSent(e); |
| 1197 | | if (Config::Chat::instance()->msgChatView() && myHistoryView != NULL) |
| 1198 | | { |
| 1199 | | myHistoryView->GotoEnd(); |
| 1200 | | resetSettings(); |
| 1201 | | } |
| 1202 | | else |
| 1203 | | close(); |
| 1204 | | } |
| | 1191 | |
| | 1192 | emit autoCloseNotify(); |
| | 1193 | if (sendDone(e)) |
| | 1194 | { |
| | 1195 | emit eventSent(e); |
| | 1196 | if (Config::Chat::instance()->msgChatView() && myHistoryView != NULL) |
| | 1197 | { |
| | 1198 | myHistoryView->GotoEnd(); |
| | 1199 | resetSettings(); |
| | 1200 | |
| | 1201 | // After sending URI/File/Contact/ChatRequest switch back to text message |
| | 1202 | if (myType != MessageEvent) |
| | 1203 | changeEventType(MessageEvent); |
| | 1204 | } |
| | 1205 | else |
| | 1206 | close(); |