Skip to content

Commit dc427ab

Browse files
committed
fix(core): rollback mention detection criteria change in 0332be5
1 parent ba2c4c3 commit dc427ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

acidify-core/src/commonMain/kotlin/org/ntqqrev/acidify/message/internal/IncomingSegmentFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal interface IncomingSegmentFactory<T : BotIncomingSegment> {
6262
object Mention : IncomingSegmentFactory<BotIncomingSegment.Mention> {
6363
override fun tryParse(ctx: MessageParsingContext): BotIncomingSegment.Mention? {
6464
val at = ctx.tryPeekType { text }
65-
?.takeIf { it.pbReserve.isNotEmpty() }
65+
?.takeIf { it.attr6Buf.size >= 11 && it.pbReserve.isNotEmpty() }
6666
?: return null
6767
ctx.consume()
6868
val attr = at.pbReserve.pbDecode<TextResvAttr>()

0 commit comments

Comments
 (0)