You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
volatile@NullableStringkey; // The user name in WeChat
41
+
finalintnid; // The notification ID of conversation (hash code of "id" below)
42
+
volatile@NullableStringid; // The unique ID of conversation in WeChat
43
43
intcount;
44
44
CharSequencetitle;
45
45
CharSequencesummary;
@@ -54,7 +54,7 @@ int setType(final int type) {
54
54
if (type == mType) returntype;
55
55
finalintprevious_type = mType;
56
56
mType = type;
57
-
sender = type == TYPE_UNKNOWN || type == TYPE_GROUP_CHAT ? null : sender().setKey(key).setBot(type == TYPE_BOT_MESSAGE); // Always set key as it may change
57
+
sender = type == TYPE_UNKNOWN || type == TYPE_GROUP_CHAT ? null : sender().setKey(id).setBot(type == TYPE_BOT_MESSAGE); // Always set key as it may change
58
58
if (type != TYPE_GROUP_CHAT) mParticipants.clear();
59
59
returnprevious_type;
60
60
}
@@ -98,7 +98,7 @@ static CharSequence getOriginalName(final Person person) {
finalStringparticipant = ext.getParticipant(); // No need to getParticipants() due to actually only one participant at most, see CarExtender.Builder().
156
-
if (BuildConfig.DEBUG && conversation.key != null) reply_remote_input.setLabel(conversation.key);
156
+
if (BuildConfig.DEBUG && conversation.id != null) reply_remote_input.setLabel(conversation.id);
finalBubbleMetadata.Builderbuilder = SDK_INT > Q && shortcut_id != null ? newBubbleMetadata.Builder(shortcut_id) // WeChat does not met the requirement of bubble on Android Q: "documentLaunchMode=always"
0 commit comments