RCKMessageForwardPolicy class

消息「转发」能力的统一门控。

未发送成功的内容不允许被转发到其它会话:sending / failed / canceled 三种状态都表示消息还没有真正落到服务端,转发只会把一份未生效的内容复制到 目标会话,造成内容传播与一致性问题(QA 反馈:发送失败的消息仍能转发成功)。

判定只依赖 RCIMIWSentStatus,与 RCKMessageReactionPolicy 和 RCKChatProvider._isMessageStructurallyEditable 保持同一组「不可用状态」, 避免同一个发送态在编辑、回应、转发三处给出互相矛盾的门控结果。

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

canForward(RCIMIWMessage message) → bool
单条消息是否允许转发。
canForwardOverConnection(RCIMIWConnectionStatus? status) → bool
当前连接是否允许转发。
canMultiSelect(RCIMIWMessage message) → bool
小灰条是提示性消息,不应进入多选选择集。
forwardable(Iterable<RCIMIWMessage> messages) → List<RCIMIWMessage>
过滤出可转发的那一批,保持原有顺序。
isConnectionUnavailable(RCIMIWConnectionStatus? status) → bool
该连接状态是否意味着消息无法真正发出去。
isForwardUnavailableForSentStatus(RCIMIWSentStatus? sentStatus) → bool
该发送状态是否意味着消息尚未发送成功。
isInformationNotification(RCIMIWMessage message) → bool
是否为小灰条信息通知。

Constants

informationNotificationObjectName → const String
小灰条信息通知的原生 objectName。