1 | static L<GazelleTree> dm_gazelle_revisitChatLine(long msgID, O... _) { |
2 | O line = dm_call(dm_gazelle_linesCRUD(), 'lineForID, msgID); |
3 | if (line == null) null; |
4 | long channelID = toLong(call(line, 'channelID)); |
5 | L lines = cast dm_call(dm_gazelle_linesCRUD(), 'linesInChannel, channelID); |
6 | int i = indexOf(lines, line); |
7 | if (i < 0) ret null with print("Line not found in channel " + channelID); |
8 | LS preContext = collect text(takeLast(10, takeFirst(i, lines))); |
9 | print("preContext (last first): " + sfu(reversed(preContext))); |
10 | ret gazelle_reason_repeat( |
11 | getString text(line), |
12 | paramsPlus(_, |
13 | userName := call(line, 'userName), |
14 | +preContext)); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1021869 |
Snippet name: | dm_gazelle_revisitChatLine |
Eternal ID of this version: | #1021869/8 |
Text MD5: | d2a44248cf36ab316205fafbf87e8d0d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-19 13:23:21 |
Source code size: | 681 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 335 / 394 |
Version history: | 7 change(s) |
Referenced in: | [show references] |