| 102 | } |
| 103 | |
| 104 | void Transcribes::toggle(not_null<HistoryItem*> item) { |
| 105 | const auto id = item->fullId(); |
| 106 | auto i = _map.find(id); |
| 107 | if (i == _map.end()) { |
| 108 | load(item); |
| 109 | _session->data().requestItemResize(item); |
| 110 | } else if (!i->second.requestId) { |
| 111 | i->second.shown = !i->second.shown; |
| 112 | if (i->second.roundview) { |
| 113 | _session->data().requestItemViewRefresh(item); |
| 114 | } |
| 115 | _session->data().requestItemResize(item); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | void Transcribes::toggleSummary(not_null<HistoryItem*> item) { |
| 120 | const auto id = item->fullId(); |
nothing calls this directly
no test coverage detected