({
source,
target,
from,
to,
}: {
source: string;
target: string;
from: string;
to: string;
})
| 747 | } |
| 748 | |
| 749 | function onThreadDrop({ |
| 750 | source, |
| 751 | target, |
| 752 | from, |
| 753 | to, |
| 754 | }: { |
| 755 | source: string; |
| 756 | target: string; |
| 757 | from: string; |
| 758 | to: string; |
| 759 | }) { |
| 760 | if (source === 'thread' && target === 'thread') { |
| 761 | return mergeThreads({ from, to }); |
| 762 | } else if (source === 'message' && target === 'thread') { |
| 763 | return moveMessageToThread({ |
| 764 | messageId: from, |
| 765 | threadId: to, |
| 766 | }); |
| 767 | } else if (source === 'message' && target === 'channel') { |
| 768 | return moveMessageToChannel({ messageId: from, channelId: to }); |
| 769 | } |
| 770 | } |
| 771 | |
| 772 | function onShare() { |
| 773 | const url = |
nothing calls this directly
no test coverage detected