mirror of https://github.com/procxx/kepka.git
				
				
				
			fixed conversations list update on message edit
This commit is contained in:
		
							parent
							
								
									1bd986d2cb
								
							
						
					
					
						commit
						6fae60b6bb
					
				|  | @ -931,6 +931,12 @@ namespace App { | ||||||
| 			existing->updateMedia(m.has_media() ? (&m.vmedia) : 0, true); | 			existing->updateMedia(m.has_media() ? (&m.vmedia) : 0, true); | ||||||
| 			existing->setViewsCount(m.has_views() ? m.vviews.v : -1, false); | 			existing->setViewsCount(m.has_views() ? m.vviews.v : -1, false); | ||||||
| 			existing->initDimensions(); | 			existing->initDimensions(); | ||||||
|  | 			if (existing->history()->textCachedFor == existing) { | ||||||
|  | 				existing->history()->textCachedFor = 0; | ||||||
|  | 			} | ||||||
|  | 			if (App::main()) { | ||||||
|  | 				App::main()->dlgUpdated(existing->history(), existing->id); | ||||||
|  | 			} | ||||||
| 			Notify::historyItemResized(existing); | 			Notify::historyItemResized(existing); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -531,7 +531,10 @@ namespace _mtp_internal { | ||||||
| 						return; | 						return; | ||||||
| 					} | 					} | ||||||
| 				} else { | 				} else { | ||||||
| 					if (h.onDone) (*h.onDone)(requestId, from, end); | 					if (h.onDone) { | ||||||
|  | //						t_assert(App::app() != 0);
 | ||||||
|  | 						(*h.onDone)(requestId, from, end); | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 			} catch (Exception &e) { | 			} catch (Exception &e) { | ||||||
| 				if (!rpcErrorOccured(requestId, h, rpcClientError("RESPONSE_PARSE_FAILED", QString("exception text: ") + e.what()))) { | 				if (!rpcErrorOccured(requestId, h, rpcClientError("RESPONSE_PARSE_FAILED", QString("exception text: ") + e.what()))) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue