42wim / matterircd

Connect to your mattermost or slack using your IRC-client of choice.
MIT License
294 stars 60 forks source link

Allow showing parent thread or message ID with PrefixContext / SuffixContext #348

Closed hloeung closed 3 years ago

hloeung commented 3 years ago

Per https://github.com/42wim/matterircd/pull/344#issuecomment-733971333, this adds an option, ThreadContext="mattermost", to show the Mattermost's internal message or parent thread ID rather than the matterircd generated 3-letter hexadecimal counter (the default).

This can be used to reply to threads or create threads replying to messages.

With SuffixContext:

|19:33 <hloeung> added reaction: coffee [@@mbqq5nsgm3ypmx5befzm5y4bgh]
|19:34 <hloeung> :coffee: [@@zyo6u9ew1jgo5jnj85erxruakc]

With PrefixContext:

|19:39 <hloeung> [@@3u9tojwo1ib89j7m39riykjy3a] Test
|19:39 <hloeung> [@@mbqq5nsgm3ypmx5befzm5y4bgh] added reaction: 100
42wim commented 3 years ago

Thanks!