Method, medium, electronic device, and program product for session information update

CN122802470APending Publication Date: 2026-09-22HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510340875.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

用户所选择图像或者电子设备基于群聊会话中的固定群成员的头像拼接得到的图像在配置为聊天背景或群头像后,通常只在用户主动修改时才会变化,用户体验较差

Benefits of technology

[0053]需要说明的是,上述第二方面至第七方面的有益效果可以参考第一方面的内容,在此不做赘述。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122802470A_ABST
    Figure CN122802470A_ABST
Patent Text Reader

Abstract

The application relates to the field of instant messaging technology, in particular to a method, medium, electronic device and program product for updating conversation information. In the method, the electronic device can dynamically generate at least one image for configuring a group chat conversation group avatar and chat background based on the message frequency, chat theme, group service information and group member information of the group chat conversation. Then, the electronic device can update the group avatar and / or chat background of the group chat conversation based on the generated at least one image when the group image update condition is met. Based on the above manner, the group image of the group chat conversation can be dynamically updated, which is beneficial to improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of instant messaging technology, and in particular to a method, medium, electronic device, and program product for updating session information. Background Technology

[0002] Instant messaging (IM) applications typically provide chat sessions for two or more users, such as one-on-one chat sessions for two users to chat individually, and group chat sessions for at least two users within a session. Electronic devices can configure images as chat backgrounds for one-on-one chat sessions, chat backgrounds for group chat sessions, group avatars, etc.

[0003] Chat backgrounds, group avatars, and user avatars configured in a chat session are usually images selected by the user, or images stitched together by the electronic device based on the avatars of fixed group members in the chat session. Once configured as a chat background or group avatar, these images typically only change when the user actively modifies them, resulting in a poor user experience. Summary of the Invention

[0004] In view of this, this application provides a method, medium, electronic device, and program product for updating session information.

[0005] In a first aspect, a method for updating conversation information is provided, applied to a first electronic device. The method includes: acquiring group information of a group chat conversation, the group information including at least one of message frequency, chat topic, group service information, and group member information, wherein the group member information includes one or more of the relationship between group members and the mood of group members, and the group service information includes one or more of the group service name, group service type, and group service progress; determining at least one image based on the group information, wherein the at least one image is used to update the group image of the group chat conversation, the group image including a group avatar and / or a chat background.

[0006] In this implementation, the first electronic device can obtain at least one image for configuring the group image based on the group information of the group chat session. Compared to a fixed group image, this improves the user experience. Furthermore, since the generated at least one image is obtained based on one or more of the group information, the at least one image can be associated with the information of the group chat session, which can improve the recognizability of the group image in the group chat session and the relevance of the group image to the group chat session.

[0007] In one possible implementation of the first aspect above, the group information further includes at least one of the following: group member avatars, current group avatars, current chat background, group name, group announcements, group introduction, group member activity levels, group member nicknames, and group member remarks.

[0008] In one possible implementation of the first aspect above, determining at least one image based on group information includes: generating at least one image using an image generation model based on the group information.

[0009] In this implementation, an image generation model is used to generate images based on group information. Compared to directly selecting images from multiple images or generating group images through simple pattern overlay, images generated based on group information through an image generation model have a higher correlation with the group information, which is beneficial for further improving the user experience.

[0010] In one possible implementation of the first aspect above, obtaining group information of a group chat session includes: a first service in a first electronic device obtaining group information from a first application to which the group chat session belongs, wherein the at least one image is generated by the first service through an image generation model, and the at least one image is used by the first application to update the group image of the group chat session.

[0011] In this implementation, the first application can send group information (or de-identified group information obtained by de-identifying the group information) to the first service, so that the first service can call an image generation model based on the group information (or de-identified group information) to generate at least one of the aforementioned images. Sending de-identified group information to the first service by the first application avoids privacy leaks during the transmission of the group information.

[0012] In one possible implementation of the first aspect above, determining at least one image based on group information includes: sending desensitized group information obtained by desensitizing the group information to a second electronic device, and receiving at least one image generated by the second electronic device based on the desensitized group information through an image generation model.

[0013] In this implementation, at least one image can be generated based on group information by an electronic device other than the first electronic device. In this scenario, the first electronic device can be a terminal device running a chat application, the second electronic device can be an application server for the chat application or an AI server providing image generation capabilities, or the first electronic device can be an application server for the chat application and the second electronic device can be an AI server providing image generation capabilities. Because the first electronic device sends de-identified group information to the second electronic device instead of the group information itself, privacy leaks during the transmission of group information can be avoided.

[0014] In one possible implementation of the first aspect above, obtaining the group information of the group chat session includes: obtaining the group information of the group chat session in response to satisfying the first condition.

[0015] In one possible implementation of the first aspect above, the first condition includes at least one of the following conditions: a preset update cycle or update time is reached; an administrator of the group chat session is detected to trigger an operation to update the group image; the number of messages in the group chat session reaches a number threshold between the current time and the last time the group image was updated; at least one piece of information in the group information changes; the proportion of group members in the group chat session who confirm the update of the group image reaches a second proportion; the number of group members in the group chat session who confirm the update of the group image reaches a second number; the group chat session includes group services; the group chat session includes a first user of the first electronic device, and the group chat session includes group services initiated by the first user.

[0016] In this implementation, the first electronic device can trigger the generation of at least one image for updating the group image if a first condition (such as the group image generation condition described below) is met.

[0017] In one possible implementation of the first aspect above, the at least one image includes a first image and / or a second image; and the method further includes: updating the group avatar configured for the group chat session from a third image to the first image in response to satisfying a second condition, and / or updating the chat background configured for the group chat session from a fourth image to the second image.

[0018] In this implementation, the first electronic device can update the group avatar (e.g., the global group avatar below) configured in the group chat session using the generated first image, and / or update the chat background (e.g., the global chat background below) configured in the group chat session using the generated second image, provided that the second condition is met.

[0019] In one possible implementation of the first aspect above, the second condition includes at least one of the following conditions: at least one group member with management authority over the group chat session confirms the update of the group image; the group chat session is configured to automatically update the group image; the proportion of group members in the group chat session who confirm the update of the group image reaches a first proportion; and the number of group members in the group chat session who confirm the update of the group image reaches a first number.

[0020] In this implementation, the first electronic device updates the group image only when the second condition is met, which avoids directly updating the group image from affecting the user experience.

[0021] In one possible implementation of the first aspect above, the group chat session is a session in the first application, the first user logged into the first application on the first electronic device has management permissions for the group chat session, or the first electronic device is the application server corresponding to the first application.

[0022] In one possible implementation of the first aspect described above, the at least one image includes a plurality of images for configuring a group avatar for a group chat session, and / or a plurality of images for configuring a chat background for a group chat session; the first image is an image selected by at least one group member in the group chat session from the plurality of images for configuring a group avatar for a group chat session, and / or the second image is an image selected by at least one group member in the group chat session from the plurality of images for configuring a chat background for a group chat session.

[0023] In this implementation, multiple images can be generated for configuring group avatars and / or multiple images for configuring chat backgrounds. Then, the first electronic device can update the group avatar configured in the group chat session based on a first image selected by at least one group member (e.g., the group owner, administrator, or other group member), and update the chat background configured in the group chat session based on a second image selected by at least one group member (e.g., the group owner, administrator, or other group member). In this way, users can choose one image from multiple images to update either the group avatar or the chat background, which improves the user experience.

[0024] In one possible implementation of the first aspect above, the group chat session is a session in a first application, and at least one image includes a seventh image and / or an eighth image; and the method further includes: in response to satisfying a third condition, updating the group avatar of the group chat session displayed on the first electronic device from the ninth image to the seventh image, and / or updating the chat background of the group chat session displayed on the first electronic device from the tenth image to the eighth image; wherein the third condition includes at least one of the following conditions: the first user logged into the first application in the first electronic device confirms the update of the group image displayed on the first electronic device, and the first application is configured to automatically update the group image of the group chat session displayed on the first electronic device when the logged-in user is the first user.

[0025] In this implementation, the group avatar displayed by the first electronic device can be the local group avatar as described below, and the chat background displayed by the first electronic device can be the local chat background as described below.

[0026] In one possible implementation of the first aspect above, the at least one image includes a plurality of images for configuring a group avatar for a group chat session, and / or a plurality of images for configuring a chat background for a group chat session; and the seventh image is an image selected by the first user from the plurality of images for configuring a group avatar for a group chat session, and / or the eighth image is an image selected by the first user from the plurality of images for configuring a chat background for a group chat session.

[0027] In this implementation, the first electronic device can provide the first user with multiple images for configuring the group avatar / chat background displayed by the first electronic device, which helps to improve the user experience.

[0028] In one possible implementation of the first aspect described above, at least a portion of the group information is determined based on the historical chat logs of the group chat session.

[0029] Secondly, a method for updating session information is provided, applied to a first electronic device, the method comprising:

[0030] Acquire session information of a one-on-one chat session, which is a session between a third user and a fourth user of a first electronic device. The session information includes message frequency, chat topic, relationship between the third and fourth users, third user's mood, fourth user's mood, third user's avatar, fourth user's avatar, notes configured by the third user for the fourth user, notes configured by the fourth user for the third user, third user's nickname, and fourth user's nickname. Determine at least one image based on the session information, wherein at least one image is used to update the one-on-one chat image displayed on the first electronic device. The one-on-one chat image includes the chat background of the one-on-one chat session and the third user's avatar.

[0031] In this implementation, the first electronic device can obtain at least one image for configuring the one-on-one chat image based on the chat session information. Compared to a fixed one-on-one chat image, this improves the user experience. Furthermore, since the generated at least one image is obtained based on one or more of the chat session information, it can be associated with the information of the one-on-one chat session, thereby improving the recognizability of the one-on-one chat image and its relevance to the one-on-one chat session.

[0032] In one possible implementation of the second aspect above, determining at least one image based on session information includes: generating at least one image using an image generation model based on the session information.

[0033] In this implementation, images are generated based on session information using an image generation model. Compared to directly selecting images from multiple images or generating images through simple pattern overlay, images generated based on session information through an image generation model have a higher correlation with the session information, which is beneficial for further improving the user experience.

[0034] In one possible implementation of the second aspect above, obtaining the session information of the one-on-one chat session includes: a first service in the first electronic device obtaining the session information from a first application to which the one-on-one chat session belongs, wherein at least one image is generated by the first service through an image generation model, and at least one image is used by the first application to update the one-on-one chat image of the one-on-one chat session.

[0035] In this implementation, the first application can send session information (or desensitized session information obtained by desensitizing the session information) to the first service, so that the first service can call the image generation model based on the session information (or desensitized session information) to generate at least one of the above images.

[0036] In one possible implementation of the second aspect above, determining at least one image based on session information includes: sending desensitized session information obtained by desensitizing the session information to a second electronic device, and receiving at least one image generated by the second electronic device based on the desensitized session information through an image generation model.

[0037] In this implementation, at least one image can be generated based on session information by an electronic device other than the first electronic device. In this case, the first electronic device can be a terminal device running a chat application, the second electronic device can be an application server for the chat application or an artificial intelligence server that provides image generation capabilities, or the first electronic device can be an application server for the chat application and the second electronic device can be an artificial intelligence server that provides image generation capabilities.

[0038] In one possible implementation of the second aspect above, obtaining the session information of the one-on-one chat session includes: obtaining the session information of the one-on-one chat session in response to the satisfaction of the fourth condition.

[0039] In one possible implementation of the second aspect above, the fourth condition includes at least one of the following conditions: reaching a preset update cycle or update time; detecting an operation by the fourth user to update the one-on-one chat image; the number of messages in the one-on-one chat session reaching a number threshold between the current time and the time of the last update of the one-on-one chat image; and at least one piece of information in the session information changing.

[0040] In one possible implementation of the second aspect above, the aforementioned one-on-one chat session is a session in the first application, and at least one image includes an eleventh image and / or a twelfth image; and the method further includes: in response to satisfying a fifth condition, updating the avatar of the third user displayed on the first electronic device from the thirteenth image to the eleventh image, and / or updating the chat background of the one-on-one chat session displayed on the first electronic device from the fourteenth image to the twelfth image; wherein the fifth condition includes at least one of the following conditions: the fourth user confirms the update of the one-on-one chat image of the third user in the one-on-one chat session displayed on the first electronic device, and the one-on-one chat session is configured to automatically update the one-on-one chat image.

[0041] In one possible implementation of the second aspect above, the at least one image includes a plurality of images for configuring the avatar of a third user, and / or a plurality of images for configuring the chat background of a one-on-one chat session; the eleventh image is an image selected by the first user from the plurality of images for configuring the avatar of the third user, and / or the twelfth image is an image selected by the first user from the plurality of images for configuring the chat background of a one-on-one chat session.

[0042] In this implementation, the first electronic device can provide the first user with multiple images for configuring the chat background of the third user's avatar / one-on-one chat session displayed on the first electronic device, which helps to improve the user experience.

[0043] In one possible implementation of the second aspect above, at least a portion of the aforementioned session information is determined based on historical chat logs from one-on-one sessions.

[0044] Thirdly, a method for updating session information is provided, the method comprising:

[0045] The first electronic device acquires group information of a group chat session. The group information includes at least one of message frequency, chat topic, group service information, and group member information. The group member information includes one or more of the relationships between group members and the emotions of group members. The group service information includes one or more of the group service name, group service type, and group service progress. The first electronic device sends de-identified group information corresponding to the group information to the second electronic device. The second electronic device generates at least one image for configuring the group chat session based on the de-identified group information. The group image includes a group avatar and / or a chat background.

[0046] In one implementation of the third aspect described above, the method further includes: the second electronic device sending at least one image to the first electronic device.

[0047] In one implementation of the third aspect described above, the method further includes: the first electronic device updating group information of the group chat session based on at least one image.

[0048] Fourthly, a method for updating session information is provided, the method comprising: a first electronic device acquiring group information of a group chat session, the group information including at least one of message frequency, chat topic, group service information, and group member information, wherein the group member information includes one or more of the relationship between group members and the mood of group members, and the group service information includes one or more of the group service name, group service type, and group service progress; the first electronic device generating at least one image for configuring a group image of the group chat session based on the group information, the group image including a group avatar and / or a chat background; and the first electronic device sending at least one image to a second electronic device.

[0049] In one implementation of the fourth aspect described above, the method further includes: a second electronic device updating group information of a group chat session based on at least one image.

[0050] Fifthly, a readable storage medium is provided, the readable storage medium including one or more programs, which, when executed on an electronic device, cause the electronic device to implement any of the methods for updating session information provided in the first and second aspects above.

[0051] A sixth aspect provides an electronic device comprising: at least one memory for storing one or more programs; and at least one processor for executing the one or more programs to cause the electronic device to implement any of the methods for updating session information provided in the first and second aspects.

[0052] In a seventh aspect, a program product is provided that, when executed on an electronic device, enables the electronic device to implement any of the methods for updating session information provided in the first and second aspects above.

[0053] It should be noted that the beneficial effects of aspects two through seven mentioned above can be referred to the content of aspect one, and will not be repeated here. Attached Figure Description

[0054] Figure 1 According to some embodiments of this application, a schematic diagram of the interface of a chat application is shown.

[0055] Figure 2A According to some embodiments of this application, a schematic diagram of configuring a global group avatar based on group service information is shown.

[0056] Figure 2B According to some embodiments of this application, a schematic diagram is shown of configuring a global group avatar based on chat topic and group member relationships.

[0057] Figure 2CAccording to some embodiments of this application, another schematic diagram is shown for configuring global group avatars based on chat topics and group member relationships.

[0058] Figure 2D According to some embodiments of this application, another schematic diagram is shown of configuring a global group avatar based on chat topic and group member relationships.

[0059] Figure 2E According to some embodiments of this application, another schematic diagram is shown for configuring a global group avatar based on chat topic and group member relationships.

[0060] Figure 3A According to some embodiments of this application, a schematic diagram of configuring a global chat background based on a chat theme is shown.

[0061] Figure 3B According to some embodiments of this application, another schematic diagram of configuring a global chat background based on a chat theme is shown.

[0062] Figure 3C According to some embodiments of this application, a schematic diagram of configuring a global chat background based on group member relationships is shown.

[0063] Figure 3D According to some embodiments of this application, another schematic diagram of configuring a global chat background based on group member relationships is shown.

[0064] Figure 4A According to some embodiments of this application, an example of updating the local group avatar of group chat session 1 based on the aforementioned group avatar P2 is shown.

[0065] Figure 4B According to some embodiments of this application, an example is shown of updating the local chat background of group chat session 1 based on the aforementioned background image B1.

[0066] Figure 5A According to some embodiments of this application, a schematic diagram of a technical framework is shown for a first electronic device being an administrator device.

[0067] Figure 5B According to some embodiments of this application, a schematic diagram of a software architecture in an administrator device is shown.

[0068] Figure 5C According to some embodiments of this application, a schematic diagram of a technical framework is shown for another first electronic device being an administrator device.

[0069] Figure 5D According to some embodiments of this application, a schematic diagram of a technical framework is shown where the first electronic device is an application server.

[0070] Figure 5E According to some embodiments of this application, a schematic diagram of a technical framework is shown for another first electronic device as an application server.

[0071] Figure 6 According to some embodiments of this application, a flowchart of a session information update method is shown.

[0072] Figure 7A According to some embodiments of this application, a schematic diagram of a group image settings interface for an administrator of a group chat session is shown.

[0073] Figure 7B According to some embodiments of this application, a schematic diagram of a non-administrator group image settings interface for a group chat session is shown.

[0074] Figure 8 According to some embodiments of this application, an interactive flowchart of a method for updating session information based on candidate images to configure global group images is shown.

[0075] Figure 9A According to some embodiments of this application, a schematic diagram of a voting interface V1 displayed in a mobile phone 300 is shown.

[0076] Figure 9B According to some embodiments of this application, a schematic diagram of a voting interface V2 displayed in a mobile phone 300 is shown.

[0077] Figure 10 According to some embodiments of this application, an interactive flowchart of another method for updating session information based on candidate images to configure global group images is shown.

[0078] Figure 11 According to some embodiments of this application, an interactive flowchart of another method for updating session information based on candidate image configuration of global group image is shown.

[0079] Figure 12 According to some embodiments of this application, an interactive flowchart of another method for updating session information based on candidate images to configure global group images is shown.

[0080] Figure 13 According to some embodiments of this application, an interactive flowchart of a method for updating session information based on candidate images to configure local group images is shown.

[0081] Figure 14 According to some embodiments of this application, a schematic diagram of a chat background that dynamically updates a one-on-one chat session is shown.

[0082] Figure 15According to some embodiments of this application, a flowchart illustrating a method for updating a one-on-one chat image in a one-on-one chat session is shown.

[0083] Figure 16 According to some embodiments of this application, a schematic diagram of the structure of an electronic device 1000 is shown.

[0084] Figure 17 According to some embodiments of this application, a schematic diagram of the structure of an electronic device 2000 is shown. Detailed Implementation

[0085] The illustrative embodiments of this application include, but are not limited to, methods for updating session information, readable storage media, electronic devices, and program products.

[0086] As described in the background section, the chat background, group avatars, etc., configured in a chat session are usually images selected by the user, or images stitched together by the electronic device based on the avatars of fixed group members in the group chat session. Furthermore, once configured as a chat background or group avatar, the image selected by the user or the image stitched together by the electronic device based on the avatars of fixed group members in the group chat session typically only changes when the user actively modifies it, resulting in a poor user experience.

[0087] For example, in some embodiments, an electronic device can stitch together the avatars of the first N (N is a positive integer greater than 1, such as 2, 4, 5, 9, etc.) members who have joined a group chat session into a single image, and configure the stitched image as the group avatar. Once the stitched image is configured as the group avatar, it is usually fixed.

[0088] For example, Figure 1 According to some embodiments of this application, a schematic diagram of the interface of a chat application is shown.

[0089] like Figure 1 As shown, user DD of mobile phone 100 is the administrator of group chat session 1. Group chat session 1 members also include user AA, user BB, and user CC. The group avatar P1 of group chat session 1 is obtained by stitching together user DD's avatar P11, user AA's avatar P12, user BB's avatar P13, and user CC's avatar P14. Since the group avatar is only based on the individual avatars of the group members in group chat session 1, it cannot reflect relevant information about group chat session 1, such as chat topics, activity levels, and group member status. Furthermore, after the group avatar P1 is configured, mobile phone 100 will only update the group avatar based on the image selected by the user if it detects that the user has actively modified the group avatar of group chat session 1.

[0090] Continue to refer to Figure 1In chat applications, the group avatar of group chat 2 is obtained by splicing the avatars of the group members in group chat 2. The group avatar of group chat 2 is highly similar to the group avatar of group chat 1. Users cannot easily distinguish between group chat 1 and group chat 2 by the group avatars of group chat 1 and group chat 2. When there are many group chats in the chat application, users cannot quickly find the group chat they need to chat in.

[0091] Based on this, this application provides a method for updating conversation information. In this method, a first electronic device can dynamically generate and update group images (such as group avatars, chat backgrounds, etc.) of a group chat conversation based on group information, which is beneficial to improving user experience.

[0092] Specifically, the first electronic device can determine at least one image (hereinafter referred to as a candidate image) for configuring the group image of the group chat session based on the group information of the group chat session (such as message frequency, chat topic, group service information, group member information, etc.) when the group image generation conditions are met (e.g., reaching a preset period). Then, the first electronic device can update the group image of the group chat session based on the generated candidate image when the group image update conditions are met (e.g., the group image of the group chat session is configured to update automatically or the group members agree to update the group image).

[0093] Thus, since group images are derived from group information, they improve the relevance of group images to group chat sessions, making it easier for users to distinguish between different group chat sessions. Furthermore, because group chat avatars can be dynamically updated under the condition that the group image generation and update conditions are met, it avoids user fatigue caused by a single, fixed group image, thereby enhancing the user experience.

[0094] It should be noted that the session information update method provided in this application embodiment is applicable to any application that can provide group chat sessions (hereinafter referred to as chat application or first application), including but not limited to IM applications, office and education applications that provide group chat sessions, and World Wide Web (Web) applications that provide online chat functions.

[0095] It should be noted that the specific form of a chat application can be an application installed on an electronic device, a web application based on web technology (such as quick apps, mini-programs, meta-services, etc.), or other forms of applications, etc., without any limitation here.

[0096] In some embodiments, group information may include one or more of the following: message frequency, chat topic, group service information, and group member information.

[0097] Message frequency can be the frequency at which messages are sent in a group chat session. For example, if group members send a total of M messages within time T, then the message frequency of the group chat session within time T can be expressed as M / T.

[0098] The chat topic can be the subject of conversation among group members in a group chat session. In some embodiments, the chat topic can be obtained based on at least one of the following information: chat history, group name, group announcement, group description, etc. For example, a first electronic device or other electronic device can extract the chat topic from the chat history using an artificial intelligence model (e.g., bag-of-words model, word vector model, neural network model, natural language processing model, etc.).

[0099] Group service information can be information about group services related to group members during a group chat session, including but not limited to the group service name, group service type, and group service progress. For example, group services can include but are not limited to group activities such as word chain, polls, questionnaires, group payments / collections, group tasks, group red envelopes, and group check-ins.

[0100] Group member information can include group members' emotions, relationships between group members, etc. For example, a first electronic device or other electronic devices can process chat information of group members based on artificial intelligence models to extract group members' emotions (such as happiness, sadness, loss, anger, fear, surprise, anxiety, etc.) and / or relationships between group members (such as family, colleagues, friends, lovers, classmates, teachers and students, clients, etc.).

[0101] It should be noted that the message frequency, chat topic, group service information, and group member information mentioned above are just some examples of group information. In other embodiments, group information may include more or less information, which is not limited here.

[0102] In some embodiments, group images may include a global group image and / or a local group image. The global group image may include a global group avatar and a global chat background, while the local group image may include a local group avatar and a local chat background. Any group member in a group chat session can configure either the global group image or the local group image as the active group image. That is, the group image type can include a global group avatar, a global chat background, a local group avatar, and a local chat background.

[0103] The global group image refers to the group image that applies to all group members in a group chat session. After the global group image in a group chat session is modified, the group images of all group members in the group chat session who have the global group image as the effective group image will be updated.

[0104] A local group image refers to a group image that applies to a single group member. If a group member's local group image is modified during a group chat session, the group images of other group members in the session will not be updated.

[0105] It should be noted that in some embodiments, the local group image can be the same as the global group image. For example, a group member device can configure the currently active global group image or a previously used global group image from the group chat history as the local group image based on the group member's actions in the chat application. In this way, even if the global group image is modified, group members can still configure previously used global group images as their local group images.

[0106] In some embodiments, the group image generation conditions (or first conditions) may include at least one of the following conditions: reaching a preset update cycle or update time; detecting that an administrator of the group chat session has triggered an operation to update the group image (local group image or global group image); the number of messages in the group chat session reaching a number threshold between the current time and the last time the group image was updated; at least one piece of information in the group information has changed; the proportion of group members in the group chat session who have confirmed the update of the group image has reached a preset proportion (e.g., a second proportion); the number of group members in the group chat session who have confirmed the update of the group image has reached a preset number (e.g., a second number); detecting that a group member in the group chat session has triggered an operation to update the local group image; the group chat session includes group services; the group chat session includes a first user of a first electronic device, and the group chat session includes group services initiated by the first user.

[0107] It should be noted that there can be one or more administrators for a group chat session. An administrator can be the user who created the group chat session, or a user who has management permissions for at least some information in the group chat session, as set by the user who created the group chat session.

[0108] It should be noted that in other embodiments, the group image generation conditions may include more or fewer conditions, which is not limited here.

[0109] In some embodiments, the group image update conditions may include global group image update conditions and / or local group image update conditions. The first electronic device may update the global group image when the global group image update conditions are met, and / or update the local group image when the local group image update conditions are met.

[0110] For example, the global group image update condition (or second condition) may include at least one of the following conditions: at least one group member with management permissions for the group chat session confirms the update of the global group image; the group chat session is configured to automatically update the global group image; the proportion of group members in the group chat session who confirm the update of the global group image reaches a preset proportion (e.g., a first proportion); the number of group members in the group chat session who confirm the update of the global group image reaches a preset number (e.g., a first number).

[0111] For example, the local group image update condition (or third condition) corresponding to the first electronic device may include at least one of the following conditions: the first user logged in to the chat application in the first electronic device confirms the update of the group image (local group image, such as local group avatar, local chat background, etc.) displayed on the first electronic device; the first application is configured to automatically update the group image (local group image, such as local group avatar, local chat background, etc.) displayed on the first electronic device when the logged-in user is the first user.

[0112] It should be noted that in other embodiments, the global group image update conditions and the local group image update conditions may also include other conditions, which are not limited here.

[0113] The following section provides examples of configuring global group avatars based on different group information.

[0114] For example, during the establishment of a group chat session, the first electronic device can first generate a global group avatar for the group chat session based on preset rules. After the group chat session is established, the first electronic device can obtain the group service information of the group chat session and dynamically configure the global group avatar based on the group service information. The preset rules could be, for example, stitching together the avatars of the first N group members in the group chat session to form the global group avatar, configuring the group owner's avatar as the global group avatar, configuring the image selected by the user as the global group image, or other rules, which are not limited here.

[0115] In some embodiments, after a group chat session is established, the first electronic device can obtain the group services in the group chat session and dynamically determine the global group avatar based on the group service information corresponding to the group services and the avatars of some group members.

[0116] For example, Figure 2A According to some embodiments of this application, a schematic diagram of configuring a global group avatar based on group service information is shown.

[0117] like Figure 2AAs shown, for the aforementioned group chat session 1, taking mobile phone 100 as the first electronic device, mobile phone 100 can obtain the chat history of group chat session 1, and determine that there is a group service (voting service) in group chat session 1 when it detects that user DD sent "Initiate voting XXX" (e.g., message M1 displayed on user AA's mobile phone 200). Then, mobile phone 100 can generate a group avatar P2 based on the progress of the group service (e.g., the proportion of group members who have participated in the vote) and configure the group avatar P2 as the global group avatar of group chat session 1. In the group avatar P2, a service icon P21 indicating the voting service and text P22 indicating the progress of the voting service are added to the aforementioned group avatar P1. For example, after user AA, user BB, and user CC have all voted (e.g., when it detects that...), the group avatar P2 is used to indicate the progress of the voting service. Figure 2A As shown in message M2 corresponding to user CC, the progress of the voting service is 3 / 4 = 75%, and the text P22 in the group avatar P2 generated by mobile phone 100 is "75%". Based on this, group members in group chat session 1 can know the group service and its progress in the current group chat session 1 based on the group avatar of group chat session 1, which is beneficial to improving the user experience.

[0118] In some embodiments, after a group chat session is established, the first electronic device can obtain the chat topic and group member relationships of the group chat session based on the chat history, and dynamically determine the global group avatar based on the chat topic, group member relationships and group member avatars.

[0119] For example, Figure 2B According to some embodiments of this application, a schematic diagram is shown of configuring a global group avatar based on chat topic and group member relationships.

[0120] like Figure 2B As shown, taking mobile phone 100 as the first electronic device, mobile phone 100 can determine the chat topic of group chat 1 as "work" and the group member relationship as "colleague" based on the chat history in group chat 1, and update the global group avatar of group chat 1 from group avatar P1 to group avatar P3. In group avatar P3, the combination of the member avatars of group chat 1 with the office scene can highlight that group chat 1 is a work-related conversation, making it easier for users to distinguish different group chat conversations.

[0121] For example, Figure 2C According to some embodiments of this application, another schematic diagram is shown for configuring global group avatars based on chat topics and group member relationships.

[0122] like Figure 2CAs shown, taking mobile phone 100 as the first electronic device, mobile phone 100 can determine the chat topic of group chat 1 as "daily chores" and the group member relationship as "family" based on the chat history in group chat 1, and update the global group avatar of group chat 1 from group avatar P1 to group avatar P4. In group avatar P4, the avatars of group members in group chat 1 are combined with houses, which can highlight that group chat 1 is a conversation corresponding to a family, making it easier for users to distinguish different group chat conversations.

[0123] In some embodiments, when generating a global group avatar based on the chat topic and group member relationships, the first electronic device may generate a global group avatar by combining the member avatars of the group members in the group chat session, or it may generate a global group avatar without combining the member avatars of the group members in the group chat session.

[0124] For example, Figure 2D According to some embodiments of this application, another schematic diagram is shown of configuring a global group avatar based on chat topic and group member relationships.

[0125] like Figure 2D As shown, taking mobile phone 100 as the first electronic device, mobile phone 100 can determine the chat topic of group chat 1 as "travel" and the group member relationships as "family, colleagues, friends" based on the chat history in group chat session 1, and update the global group avatar configuration of group chat session 1 from group avatar P1 to group avatar P5 or group avatar P5'. Group avatar P5 is a landscape image, and group avatar P5' includes a landscape image and member avatars superimposed on the landscape image. In this way, the chat topic of group chat session 1 can be highlighted.

[0126] For example, Figure 2E According to some embodiments of this application, another schematic diagram is shown for configuring a global group avatar based on chat topic and group member relationships.

[0127] like Figure 2E As shown, the chat content in group chat session 1 includes: "Where to travel? To the Great Wall?" sent by user AA; "Going to Shanghai to see the Oriental Pearl Tower?" sent by user BB; "Going to the beach?" sent by user CC; and "Going hiking?" sent by user DD. Based on the above chat content, the chat theme "travel destination," and the group member relationships "family, colleagues, friends," mobile phone 100 can generate a group avatar P5″ using an image generation model and update the global group avatar of group chat session 1 from group avatar P1 to group avatar P5″. Group avatar P5″ includes the avatars of each group member in group chat session 1 and images of the travel destinations proposed by each group member, fully reflecting the chat theme and content of group chat session 1, which is beneficial to improving the user experience.

[0128] exist Figures 2A to 2EIn the example, mobile phone 100 can dynamically update the global group avatar of group chat session 1 based on the group information of group chat session 1, which helps to improve the user experience.

[0129] The following section provides examples of configuring a global chat background based on different group information.

[0130] For example, after a group chat session is established, the first electronic device can configure a global chat background for the group chat session, such as a solid color background, a user-selected or preset image, etc. In some embodiments, after the group chat session is established, the first electronic device can dynamically configure the global chat background based on group information.

[0131] In some embodiments, after a group chat session is established, the first electronic device can generate and configure a global chat background for the group chat session based on the chat topic of the group chat session.

[0132] For example, Figure 3A and Figure 3B According to some embodiments of this application, a schematic diagram of configuring a global chat background based on a chat theme is shown.

[0133] refer to Figure 3A Taking mobile phone 100 as the first electronic device, when group chat session 1 is established, the global chat background is configured to pure white. Mobile phone 100 can determine the chat topic of group chat session 1 as "travel" based on the message sent by user AA, "Where are you going on a trip? To the Great Wall?" Then, it generates a background image B1 based on the chat topic "travel" and updates the global chat background of group chat session 1 from pure white to background image B1.

[0134] refer to Figure 3B Taking mobile phone 100 as the first electronic device, when updating the global chat background of group chat session 1 from pure white to background image B1, mobile phone 100 can determine the chat topic of group chat session 1 as "stocks" based on user AA's message "How are stocks this year?", user BB's message "Losed a little", and user CC's message "Made a little". Then, mobile phone 100 can generate background image B2 based on the chat topic "stocks" and update the global chat background of group chat session 1 from background image B1 to background image B2.

[0135] Based on the above Figure 3A and Figure 3B It can dynamically configure the global chat background associated with the chat topic based on the chat topic of group chat session 1, which helps to improve the user experience.

[0136] In some embodiments, after a group chat session is established, the first electronic device can generate and configure a global chat background for the group chat session based on the group member relationships.

[0137] For example, Figure 3C and Figure 3D According to some embodiments of this application, a schematic diagram of configuring a global chat background based on group member relationships is shown.

[0138] refer to Figure 3C For the aforementioned group chat session 1, mobile phone 100 can configure the global chat background of group chat session 1 as background image B3 if it is determined that the group members of group chat session 1 are family members. Background image B3 is an image of a family house, which can indicate the relationship between group members in group chat session 1.

[0139] refer to Figure 3D For the aforementioned group chat session 1, mobile phone 100 can configure the global chat background of group chat session 1 to background image B4 if it is determined that the group members of group chat session 1 are family members and the topic of group chat is New Year's Eve dinner. Background image B4 is an image of a family having New Year's Eve dinner, and the figures in background image B4 use the avatars of users AA, BB, CC, and DD, which can indicate the relationship between group members in group chat session 1 and the chat topic.

[0140] exist Figures 3A to 3D In the example, group chat session 1 can be dynamically updated based on the group information of group chat session 1, which helps to improve the user experience.

[0141] The following is an example of configuring local group avatars and local chat backgrounds based on group information.

[0142] In some embodiments, after the first electronic device determines a candidate image for configuring a group image, if the object to be updated is a local group image, the corresponding group image in the devices of other group members in the group chat session, excluding the first user of the first electronic device, will not be updated.

[0143] For example, Figure 4A According to some embodiments of this application, an example of updating the local group avatar of group chat session 1 based on the aforementioned group avatar P2 is shown.

[0144] like Figure 4A As shown, compared to Figure 2A In the scenario shown, after determining the group avatar P2, mobile phone 100 (as an example of the first electronic device) can update the local group avatar of group chat session 1 in mobile phone 100 to the group avatar P2, while the group avatar of group chat session 1 displayed in the electronic devices of other group members in group chat session 1 (such as mobile phone 200 of user AA) will still be the group avatar P1 (or the local group image configured by other group members).

[0145] For example, Figure 4BAccording to some embodiments of this application, an example is shown of updating the local chat background of group chat session 1 based on the aforementioned background image B1.

[0146] like Figure 4B As shown, compared to Figure 3A As shown, after determining the background image B1, mobile phone 100 (as an example of the first electronic device) can update the local chat background of group chat session 1 in mobile phone 100 to the background image B1, while the chat background of group chat session 1 displayed in the electronic devices of other group members in group chat session 1 (such as mobile phone 200 of user AA) remains pure white.

[0147] Based on the above method, the local group image of group chat session 1 can be dynamically updated, which helps to improve the user experience.

[0148] The technical architecture for configuring a global group image in this application is described below with reference to a specific example of the first electronic device.

[0149] In some embodiments, the first electronic device may be a chat application server (hereinafter referred to as the application server), a terminal device of an administrator in a group chat session (hereinafter referred to as the administrator device), or a terminal device of other group members in a group chat session (hereinafter referred to as the non-administrator device). The administrator device and non-administrator devices can be collectively referred to as group member devices (i.e., group member devices include both administrator devices and non-administrator devices).

[0150] In some embodiments, candidate images for configuring group chat sessions can be obtained using an image generation model based on group information of the group chat session. For example, a first electronic device can run an image generation model to generate candidate images for configuring group chat sessions based on group information. Alternatively, the first electronic device can send group information, or de-identified group information after information anonymization, to other electronic devices (e.g., a second electronic device), and the other electronic devices can generate candidate images for configuring group chat sessions based on the group information by running an image generation model.

[0151] In some embodiments, the image generation model can be any image generation model, including but not limited to large models, large language models, generative adversarial networks (GANs), variational autoencoders (VAEs), diffusion models, autoregressive models, fractal generation models, or other models that can generate images based on group information. This application does not limit the specific type and category of the image generation model.

[0152] First, let's introduce the scenario where the first electronic device is an administrator device.

[0153] For example, Figure 5A According to some embodiments of this application, a schematic diagram of a technical framework is shown for a first electronic device being an administrator device.

[0154] like Figure 5A As shown, this technical architecture includes administrator devices, application servers, and group member devices. Based on Figure 5A In the illustrated architecture, when the conditions for generating a group avatar are met, the administrator device can generate candidate images based on the group information of the group chat session by running an image generation model on the administrator device. Then, the administrator device can send a group image update request, including the generated candidate images, to the application server. Next, in response to the received group image update request, the application server can send group image update information, including the candidate images, to the group member devices if the global group image update conditions are met. Finally, the group member devices can update the global group image (chat background and / or chat image) of the group chat session based on the received group image update request.

[0155] In some embodiments, the image generation model may be integrated within the chat application or outside the chat application (e.g., a service or function provided by an operating system or other application outside the chat application), and this is not limited thereto.

[0156] The following section uses the capabilities that image generation models provide to the operating systems of electronic devices as an example to introduce... Figure 5A The technical architecture shown is a specific implementation of the administrator device.

[0157] For example, Figure 5B According to some embodiments of this application, a schematic diagram of a software architecture in an administrator device is shown.

[0158] like Figure 5BAs shown, the software architecture of an administrator device may include an application layer, a framework layer (and / or a service layer). The application layer may include applications within the administrator device, such as chat applications. The framework layer provides application programming interfaces (APIs) to the applications in the application layer.

[0159] An image generation service can be set up in the framework layer or (or service layer). The image generation service can respond to application calls, generate images (e.g., candidate images for configuring a group of images), and send the generated candidate images to the application.

[0160] For example, in some embodiments, the chat application can send an image generation request to an image generation service. This request may include de-identified group information and image parameters (e.g., resolution, number of elements) of the image to be generated. The de-identified group information can be obtained after de-identifying the group information. Then, in response to the image generation request, the image generation service can invoke an image generation model to generate candidate images and send the generated candidate images to the chat application. Finally, the chat application can configure a global group image (and / or a local group image) for the group chat session based on the candidate images generated by the image generation service.

[0161] It should be noted that because chat applications send anonymized group information to image generation services instead of the group information itself, they can reduce or even avoid user privacy leaks. Anonymization refers to transforming certain sensitive information in data using anonymization rules to reliably protect sensitive privacy data. For example, anonymization can include, but is not limited to, data encoding, data encryption, data obfuscation, masking, generalization, and perturbation.

[0162] In some embodiments, data encoding may include, but is not limited to, feature extraction.

[0163] In some embodiments, data encryption involves modifying the data in a way that makes the modified data different from the original data. The encrypted data cannot be restored to its original form.

[0164] It should be noted that, Figure 5B The software architecture shown is only one example; in other embodiments, the administrator device (or non-administrator device) may adopt the same architecture. Figure 5B Software architectures that are the same, similar, or different as those shown will not be elaborated upon here.

[0165] In other embodiments, candidate images may also be generated by devices other than the administrator's device.

[0166] For example, Figure 5CAccording to some embodiments of this application, a schematic diagram of a technical framework is shown for another first electronic device as an administrator device. Compared to Figure 5A The technical architecture shown is Figure 5C In the technical architecture shown, the image generation model is not run by the administrator device, but by the artificial intelligence (AI) server (any server that provides image generation functionality).

[0167] based on Figure 5C The architecture shown allows the administrator device to generate de-identified group information based on the group chat session's group information when it detects that the conditions for generating group avatars are met. It then sends an image generation request, including the de-identified group information, to the AI ​​server. Next, the AI ​​server runs an image generation model based on the received de-identified group information to generate candidate images and sends these candidate images to the administrator device. Then, the administrator device sends a group image update request, including the candidate images received from the AI ​​server, to the application server. In response to the group image update request, the application server sends group image update information, including the candidate images, to the group member devices if the global group image update conditions are met. Finally, the group member devices update the global group image of the group chat session (e.g., the global chat background and / or the global chat image) based on the received group image update request.

[0168] In some embodiments, the AI ​​server and the application server can be different devices or the same device. No limitation is made here. That is, the application server can generate candidate images based on the de-identified group information.

[0169] The following describes the scenario where the first electronic device is an application server.

[0170] In some embodiments, the application server may run an image generation model to generate new group avatars / new chat backgrounds.

[0171] For example, Figure 5D According to some embodiments of this application, a schematic diagram of a technical framework is shown where the first electronic device is an application server.

[0172] like Figure 5D As shown, this technical architecture includes an application server and group member devices. Based on Figure 5DIn the architecture shown, when the application server detects that the conditions for generating group avatars are met, it can generate candidate images based on the group information of the group chat session by running an image generation model on the application server. Then, when the conditions for global group image updates are met, the application server can send group image update information, including the candidate images, to the group member devices. Finally, the group member devices can update the global group image (global chat background and / or global chat image) of the group chat session based on the received group image update request.

[0173] In other embodiments, the image generation model can also be run by a device other than the application server (such as an AI server) to generate new group avatars / new chat backgrounds.

[0174] For example, Figure 5E According to some embodiments of this application, a schematic diagram of a technical framework is shown for another first electronic device as an application server.

[0175] like Figure 5E As shown, this technical architecture includes an AI server, an application server, and group member devices. Based on Figure 5A In the illustrated architecture, when the application server detects that the conditions for generating a group avatar are met, it can generate de-identified group information based on the group information of the group chat session and send an image generation request including the de-identified group information to the AI ​​server. Next, the AI ​​server can run an image generation model based on the received de-identified group information to generate candidate images and send the generated candidate images to the application server. Then, when the conditions for a global group image update are met, the application server can send group image update information including the candidate images to the group member devices. Finally, the group member devices can update the global group image (chat background and / or chat image) of the group chat session based on the received group image update request.

[0176] In the above Figures 5A to 5E In this embodiment, the updated group image is the global group image of the group chat session. The following describes how the first electronic device updates the local group image.

[0177] In some embodiments, if the group avatar generation conditions are met, the first electronic device (as a group member device) can generate candidate images based on the group information of the group chat session by running an image generation model on the group member device. Then, if the local group image update conditions are met, the first electronic device can update the group image and / or chat background displayed by the first electronic device (i.e., update the local group image of the first user of the first electronic device).

[0178] It should be noted that when the updated group image is a local group image, group member devices can run an image generation model to generate candidate images (e.g., Figure 5Aand Figure 5B (As shown in the example), it is also possible to send an image generation request to the AI ​​server and receive candidate images generated by the AI ​​server through the image generation model (e.g., Figure 5C The scenario shown is not limited here. The method by which group member devices generate candidate images based on group information can be referred to the aforementioned... Figures 5A to 5C The specific implementation examples are not described in detail here.

[0179] Below, in conjunction with Figures 5A to 5E The technical architecture shown illustrates the technical solution of this application.

[0180] For example, Figure 6 According to some embodiments of this application, a flowchart of a session information update method is shown. The execution subject of this method is a first electronic device, such as... Figure 6 As shown, the method includes:

[0181] S601, in response to satisfying the group image generation conditions, obtain the group information of the group chat session, which includes at least one of message frequency, chat topic, group business information, and group member information.

[0182] The first electronic device can obtain group information of a group chat session if the conditions for group image generation are met.

[0183] In some embodiments, group member information includes one or more of the relationships between group members and the emotions of group members, and group service information includes one or more of the group service name, group service type, and group service progress.

[0184] In some embodiments, the group information may further include at least one of the following: group member avatars, current group avatars, current chat background, group name, group announcement, group description, group member activity level, group member nicknames, and group member remarks. Thus, the candidate images generated based on the group information for configuring group images can be better associated with group chat sessions, which helps to further improve the user experience.

[0185] In some embodiments, the chat application is configured with a function option related to dynamically updating group images. The first electronic device can obtain group information of the group chat session when the group image generation conditions are met after the function option related to dynamically updating group images is enabled.

[0186] For example, Figure 7A According to some embodiments of this application, a schematic diagram of an administrator group image settings interface for a group chat session is shown.

[0187] like Figure 7AAs shown, user DD is the administrator of the aforementioned group chat session 1. The group image settings interface of group chat session 1 displayed on mobile phone 100 (as an example of the first electronic device) includes switch controls S1 to S8 corresponding to the following functions: dynamic global group avatar function, dynamic global chat background function, automatic update of global group avatar function, automatic update of global chat background function, dynamic local group avatar function, dynamic local chat background function, automatic update of local group avatar function, automatic update of local background function, and automatic agreement to update group image function.

[0188] in:

[0189] When the dynamic global group avatar function is enabled (e.g., when the switch control S1 is enabled), the global group avatar of group chat session 1 will be dynamically adjusted.

[0190] When the dynamic global chat background function is enabled (e.g., when the switch control S2 is enabled), the global chat background of group chat session 1 will be dynamically adjusted.

[0191] When the automatic global group avatar update function is enabled (e.g., when the switch control S3 is enabled), the global group avatar of group chat session 1 will be automatically updated without requiring group members to confirm again.

[0192] When the automatic global chat background update function is enabled (e.g., when the switch control S4 is enabled), the global chat background of group chat session 1 will be automatically updated without requiring group members to confirm again.

[0193] When the dynamic local group avatar function is enabled (e.g., when the switch control S5 is enabled), the local group avatar of group chat session 1 will be dynamically adjusted.

[0194] When the dynamic local chat background function is enabled (e.g., when the switch control S6 is enabled), the local chat background of group chat session 1 will be dynamically adjusted.

[0195] When the function of automatically updating the local group avatar is enabled (e.g., when the switch control S7 is enabled), the local group avatar displayed on the electronic device (e.g., mobile phone 100) logged in by user DD will be automatically updated without user DD having to confirm again.

[0196] When the automatic local background update function is enabled (e.g., when the switch control S8 is enabled), the local chat background of the group chat session 1 displayed on the electronic device (e.g., mobile phone 100) logged in by user DD will be automatically updated without user DD having to confirm again.

[0197] When the automatic approval function for group image update voting is enabled (e.g., when the switch control S8 is enabled), user DD will automatically approve the global group image update vote initiated by other administrators in the group chat session.

[0198] based on Figure 7A With the configuration shown, if at least one of the following functions—dynamic global group avatar, dynamic global chat background, dynamic local chat background, and dynamic local group avatar—is enabled, the mobile phone 100 can trigger the session information update method provided in this application embodiment. For example, the mobile phone 100 can obtain the group information of group chat session 1 when the aforementioned group avatar generation conditions are met.

[0199] In some embodiments, if the user logged into the chat application on the electronic device is not the administrator of the group chat session, the group image settings interface of the group chat session may include fewer configuration options than those in 7A above.

[0200] For example, Figure 7B According to some embodiments of this application, a schematic diagram of a non-administrator group image settings interface for a group chat session is shown.

[0201] like Figure 7B As shown, user AA is not the administrator of the aforementioned group chat session 1. The group image settings interface of group chat session 1 displayed on user AA's mobile phone 200 (as an example of the first electronic device) includes switch controls S5 to S8 corresponding to the following functions: dynamic local group avatar function, dynamic local chat background function, automatic update local group avatar function, automatic update local background function, and automatic agree to update group image function. Compared to Figure 7A The group image settings interface shown has reduced the options for dynamic global group avatar, dynamic global chat background, automatic update of global group avatar, and automatic update of global chat background.

[0202] It should be noted that in other embodiments, functions related to dynamic group images can also be set in other ways, without the need for default activation. This application does not limit this.

[0203] S602, determine at least one image (candidate image) for updating the group image of the group chat session based on group information.

[0204] After obtaining group information, the first electronic device can use at least one image (hereinafter referred to as a candidate image) based on the group information to update the group avatar and / or chat background of the group chat session. For example, the candidate image may include one or more images for configuring the global group avatar, and / or one or more images for configuring the global chat background, and / or one or more images for configuring the local group avatar, and / or one or more images for configuring the local chat background.

[0205] For example, when the aforementioned dynamic global group avatar function is enabled, the candidate images may include one or more images used to configure the global group avatar; when the aforementioned dynamic global chat background function is enabled, the candidate images may include one or more images used to configure the global chat background; when the aforementioned dynamic local group avatar function is enabled, the candidate images may include one or more images used to configure the local group avatar; when the aforementioned dynamic local chat background function is enabled, the candidate images may include one or more images used to configure the local chat background.

[0206] In some embodiments, the first electronic device may run an image generation model based on group information to generate the aforementioned candidate images. See the foregoing for details. Figure 5A , Figure 5B , Figure 5D The technical architecture.

[0207] In some embodiments, the first electronic device may also de-identify the group information to obtain de-identified group information, and send the de-identified group information to the second electronic device (e.g., the aforementioned AI server). Then, the first electronic device can receive the candidate images obtained by the second electronic device based on the de-identified group information and running an image generation model. For details, please refer to the foregoing... Figure 5C and Figure 5E The technical architecture.

[0208] It should be noted that, in the process of generating the above candidate images based on the image generation model, in addition to the aforementioned group information (or desensitized group information), other data may also be passed to the image generation model, such as image parameters of the candidate images to be generated, including image resolution, number of images, image style, and image tone, as well as instructions to the image generation model to generate images. This application does not limit this aspect.

[0209] In some embodiments, the aforementioned group information and relevant parameters of the candidate images can be input into the image generation model via prompts.

[0210] S603, Update the group image of the group chat session based on the candidate image.

[0211] Optionally, after determining the aforementioned candidate image for configuring the group chat session, the first electronic device may update the group image of the group chat session based on the candidate image.

[0212] For example, the first electronic device can update one or more of the global group avatar, global chat background, local group avatar, and local chat background of the group chat session based on the aforementioned candidate images. The first electronic device can also update the global group image based on one or more images from the aforementioned candidate images that correspond to the global group image, provided that the global group image update conditions are met. Alternatively, the first electronic device can also update the local group image based on one or more images from the aforementioned candidate images that correspond to the local group image, provided that the local group image update conditions are met.

[0213] For example, when the first electronic device is an application server or an administrator device, the first electronic device may, when the global group image update conditions are met, configure a certain image from the above candidate images that corresponds to the global group avatar as the global group avatar of the group chat session, and / or configure a certain image from the above candidate images that corresponds to the global chat background as the global chat background of the group chat session.

[0214] For example, when the above-mentioned automatic global group avatar update function is enabled (equivalent to the group chat session being configured to automatically update the group image), the first electronic device can directly replace the current global group avatar of the group chat session (e.g., the third image) with the first image in the corresponding global group avatar among the above-mentioned candidate images.

[0215] For example, when the above-mentioned automatic global chat background update function is enabled (equivalent to the group chat session being configured to automatically update the group image), the first electronic device can directly replace the current global chat background of the group chat session (e.g., the fourth image) with the second image in the corresponding global chat background among the above-mentioned candidate images.

[0216] For example, if the above-mentioned automatic global group avatar update function is turned off, and at least one user with administrative privileges (e.g., an administrator) in the group chat session determines to update the group image, or if the above-mentioned automatic global group avatar update function is turned off, and the proportion of group members in the group chat session who determine to update the group image is greater than a first proportion and / or the number of group members in the group chat session who determine to update the group image is greater than a first number, the current global group avatar of the group chat session (e.g., the third image) is replaced by the fifth image in the corresponding global group avatar among the above-mentioned candidate images.

[0217] Optionally, if the candidate images include multiple images corresponding to global group avatars, the fifth image may be an image selected by at least one group member in the group chat session from the multiple images corresponding to global group avatars.

[0218] For example, when the above-mentioned automatic global chat background update function is turned off, the first electronic device may replace the current global chat background (e.g., the fourth image) of the group chat session with the sixth image in the corresponding global chat background among the above-mentioned candidate images. This is possible when at least one user (e.g., an administrator) with administrative privileges in the group chat session determines to update the group image, or when the above-mentioned automatic global chat background update function is turned off, the proportion of group members in the group chat session who determine to update the group image is greater than a first proportion, and / or the number of group members in the group chat session who determine to update the group image is greater than a first number.

[0219] Optionally, if the candidate images include multiple images corresponding to the global chat background, the sixth image may be an image selected by at least one group member in the group chat session from the multiple images corresponding to the global chat background.

[0220] It should be noted that the specific interaction process of the first electronic device updating the global group image based on candidate images can be referred to in the following text. Figures 8 to 12 The specific implementation examples are not described in detail here.

[0221] For example, when the first electronic device is a group member device, the first electronic device may, when the local group image update conditions are met, configure a certain image in the above candidate images that corresponds to the local group avatar as the local group avatar of the group chat session, and / or configure a certain image in the above candidate images that corresponds to the local chat background as the local chat background of the group chat session.

[0222] For example, when the above-mentioned automatic update of local group avatar function is enabled (equivalent to the chat application being configured to automatically update the group image displayed on the first electronic device when the logged-in user is the first user), the first electronic device can directly replace the current local group avatar of the group chat session (e.g., the eighth image) with the seventh image in the corresponding local group avatar among the above-mentioned candidate images.

[0223] For example, when the above-mentioned automatic local chat background update function is enabled (equivalent to the chat application being configured to automatically update the group image displayed on the first electronic device when the logged-in user is the first user), the first electronic device can directly replace the current local chat background (e.g., the tenth image) of the group chat session with the ninth image in the corresponding local chat background among the above-mentioned candidate images.

[0224] For example, if the automatic update of the local group avatar function is not enabled, the first electronic device can prompt the first user whether to update the local group avatar. If the first user confirms the update, the first electronic device can replace the current local group avatar of the group chat session (e.g., the eighth image) with the seventh image from the candidate images.

[0225] Optionally, when prompting the first user whether to update the group avatar, the first electronic device may display multiple images corresponding to the local group avatar among the candidate images, and update the seventh image selected by the first user from the multiple images corresponding to the local group avatar to the local group avatar of the group chat session.

[0226] For example, if the automatic local chat background update function is not enabled, the first electronic device can prompt the first user whether to update the local chat background. If the first user confirms the update, the first electronic device can replace the current local chat background of the group chat session (e.g., the tenth image) with the eighth image from the candidate images corresponding to the local chat background.

[0227] Optionally, when prompting the first user whether to update the chat background, the first electronic device may display multiple images corresponding to the local chat background from the candidate images, and update the tenth image selected by the first user from the multiple images corresponding to the local chat background to the local chat background of the group chat session.

[0228] For example, if the group information used to generate the above candidate images includes the aforementioned group service information, the first electronic device may, when the group service is initiated by the first user, replace the current local group avatar of the group chat session (e.g., the eighth image) with the seventh image in the corresponding local group avatar in the above candidate images and / or replace the current local chat background of the group chat session (e.g., the tenth image) with the eighth image.

[0229] It should be noted that the specific interaction process of the first electronic device updating the global group image based on candidate images can be referred to in the following text. Figure 13 The specific implementation examples are not described in detail here.

[0230] based on Figure 6 In the embodiment shown, the first electronic device can dynamically update the group image of the group chat session based on group information, so that the obtained group image can reflect the information of the group chat session, which is beneficial to improving the user experience.

[0231] Below, we will introduce the technical solution of the first electronic device in the aforementioned S603 for updating the group image of the group chat session based on the above-mentioned candidate image, in combination with different first electronic devices.

[0232] In some embodiments, the first electronic device may be an administrator device. After generating the aforementioned candidate images for configuring the group image, the administrator of the group chat session may determine whether to update the group image or update the global group image based on which part of the aforementioned candidate images.

[0233] For example, Figure 8According to some embodiments of this application, a schematic diagram of the interaction flow of a session information update method for configuring a global group image based on candidate images is shown. Figure 8 As shown, the method includes:

[0234] S801, the first electronic device sends an image update request to the application server.

[0235] After determining the candidate images, the first electronic device can send an image update request to the application server. The image update request may include the candidate images and the group image type (e.g., global group avatar, global chat background) to be updated by the candidate images.

[0236] For example, in the aforementioned group chat session 1, mobile phone 100 (as the first electronic device) can generate the aforementioned group avatars P5, P5', and P5" when the chat topic is "travel destination" and the group member relationship is "family, colleagues, friends", and send a group image update request including group avatars P5, P5', and P5" to the application server.

[0237] In other embodiments, the mobile phone 100 may also generate only the aforementioned group avatar P5' and send a group image update request including the group avatar P5' to the application server.

[0238] S802, the application server sends a group image voting request to other administrator devices.

[0239] After receiving a group image update request, the application server can send group image voting requests to the terminal devices (other administrator devices) of other administrators in the group chat session, excluding the first electronic device. In some embodiments, the group image voting request may include the candidate images and the type of group image to be updated.

[0240] In some embodiments, when there are multiple candidate images, the application server may send a group image voting request to the first electronic device.

[0241] S803, other administrator devices send voting results to the application server.

[0242] Upon receiving an image voting request, other administrator devices can display a voting interface and retrieve the voting options selected by the user. The other administrator devices can then send the user's voting results to the application server. In some embodiments, the voting results indicate whether the user agrees to update the group image and / or the target image selected by the user for updating the group image.

[0243] For example, Figure 9AAccording to some embodiments of this application, a schematic diagram of a voting interface V1 displayed in a mobile phone 300 is shown.

[0244] User BB of mobile phone 300 (as an example of other administrator devices) is the administrator of group chat session 1, and the candidate images include the aforementioned group avatars P5, P5', and P5″. Figure 9A As shown, after receiving a group image voting request, the mobile phone 300 can display a voting interface V1. The voting interface V1 includes a voting box V11 to prompt the user to "Please select a new group avatar". The voting box V11 includes options corresponding to group avatar P5, group avatar P5', and group avatar P5″, as well as an option not to update.

[0245] Mobile phone 300 can respond to the user's action of selecting any one of group avatar P5, group avatar P5', and group avatar P5″ in the voting box V11, and send a voting result to the application server instructing user BB to confirm updating the group image and the group avatar selected by the user (e.g., group avatar P5). Alternatively, mobile phone 300 can also respond to the user's action of selecting the "Do not update" option in the voting box V11, and send a voting result to the application server instructing user BB to confirm not updating the group image.

[0246] For example, Figure 9B According to some embodiments of this application, a schematic diagram of a voting interface V2 displayed in a mobile phone 300 is shown.

[0247] User BB of mobile phone 300 is the administrator of group chat session 1, and the candidate images include the aforementioned group avatar P5. Figure 9B As shown, after receiving a group avatar voting request, the mobile phone 300 can display a voting interface V2. The voting interface V2 includes a voting box V21 that prompts whether to update the group avatar to the group avatar P5". The voting box V21 includes the group avatar P5", an "agree" option, a "disagree" option, and a "remember selection" option (optional).

[0248] In response to the user's selection of the "Agree" option in the voting box V21, mobile phone 300 can send a voting result to the application server instructing user BB to confirm updating the group avatar to group avatar P5. Optionally, if the user selects both the "Agree" and "Remember Selection" options in the voting box V21, mobile phone 300 will automatically send the user's vote result agreeing to update the group avatar to the server upon receiving another group avatar voting request.

[0249] Alternatively, mobile phone 300 can also respond to the user's selection of the "Disagree" option in the voting box by sending a voting result to the application server instructing user BB not to agree to update the group image. Optionally, if the user selects both the "Disagree" and "Remember Selection" options in the voting box V21, mobile phone 300 will automatically send the user's voting result of disagreeing with updating the group image to the server after receiving the group image voting request again.

[0250] It should be noted that the above method of displaying the voting interface is only an example. In other embodiments, other administrator devices can also send voting results to the application server in other ways. For example, if the user does not make a selection, other administrator devices can send a vote indicating abstention to the application server.

[0251] S804, the application server sends group image update information to group member devices.

[0252] After receiving the voting results, the application server can send group image update information to group member devices based on the received voting results, provided that the global group image update conditions are met. The group image update information may include the target image to be updated (or the group image type used for updating each target image).

[0253] In some embodiments, when there are multiple candidate images, the application server can determine the image most frequently selected by users as the target image and send group image update information including the target image to group member devices. For example, if the candidate images for updating the global group avatar include group avatar P5, group avatar P5', and group avatar P5" and the number of administrators selecting group avatar P5" is the largest, the application server can determine group avatar P5" as the target image for updating the global group avatar.

[0254] In some embodiments, when there is only one candidate image, the application server may send group image update information, including the one image, to the group member devices if the number of administrators who agree to update the group image is greater than a first value, or the proportion of administrators who agree to update the group image is greater than a preset proportion, or at least one administrator agrees to update the group image.

[0255] In some embodiments, when the candidate image corresponds to multiple group image types, the group image update information may include multiple target images that correspond one-to-one with the multiple group image types, and the group image type corresponding to each target image.

[0256] It should be noted that in some other embodiments, group member devices can periodically or non-periodically retrieve the group image of the group chat session from the application server. In this case, the application server can also update the group image of the group chat session to the target image within the application server without sending group image update information to the group member devices. The group member devices can then retrieve the target image the next time they retrieve the group image of the group chat session from the application server and update the group image in their devices to the target image.

[0257] S805, group member devices update the global group image.

[0258] After receiving group image update information (or obtaining the target image from the application server), group member devices can update the global group image of the group chat session based on the group image update information.

[0259] For example, if the target image in the group image update information includes a first image used to update the global group image, the group member device can update the global group avatar of the group chat session to the first image.

[0260] For example, if the target image in the group image update information includes a second image for updating the global chat background, the group member device can update the global chat background of the group chat session to the second image.

[0261] It should be noted that in some embodiments, when the group chat session is configured to automatically update the global group image, the above steps S802 to S804 may not be executed. After receiving the group update request, the application server can directly send group image update information to the group member devices, or update the group image of the corresponding group chat session stored in the application server to the target image; this is not limited here.

[0262] based on Figure 8 In the illustrated embodiment, the global group avatar and / or global chat background in a group chat session can be dynamically updated based on group information, which helps improve the user experience.

[0263] In some embodiments, the first electronic device may be an administrator device. After generating the aforementioned candidate images for configuring the group image, the group members of the group chat session or online group members may determine whether to update the group image, or based on which part of the aforementioned candidate images to update the group image.

[0264] For example, Figure 10 According to some embodiments of this application, a schematic diagram of the interaction flow of a session information update method is shown. For example... Figure 10 As shown, the method includes:

[0265] S1001, the first electronic device sends an image update request to the application server.

[0266] After determining the aforementioned candidate images, the first electronic device can send an image update request to the application server. The image update request may include the aforementioned candidate images, as well as the group image type for which the candidate images will be updated (e.g., global group avatar, global chat background). For details, please refer to S801, which will not be elaborated upon here.

[0267] S1002, the application server sends a group image voting request to the group member devices.

[0268] After receiving a group image update request, the application server can send a group image voting request to the devices of all group members (or online group members) in the group chat session (group member devices). In some embodiments, the group image voting request may include the candidate images and the type of group image to be updated for each candidate image.

[0269] In some embodiments, the application server may choose not to send a group image voting request to the first electronic device, which is not a limitation. For example, if there is only one candidate image, the application server may not send a group image voting request to the first electronic device; if there are multiple candidate images, the application server may send a group image voting request to the first electronic device.

[0270] S1003, group member devices send voting results to the application server.

[0271] Upon receiving an image voting request, a group member device can display a voting interface and retrieve the voting option selected by the user. The group member device can then send the user's voting result to the application server. In some embodiments, the voting result indicates whether the user agrees to update the group image and / or the image selected by the user for updating the group image. See S803 for details, which will not be elaborated upon here.

[0272] S1004, the application server sends group image update information to group member devices.

[0273] After obtaining the voting results sent by the group member devices, the application server can determine the target image of the candidate images and send group image update information to the group member devices, including the target image and the group image type to be updated.

[0274] S1005, Group member devices update global group image.

[0275] It should be noted that the specific content of S1004 and S1005 can be found in the aforementioned S804 and S805, and will not be repeated here.

[0276] based on Figure 10In the illustrated embodiment, the global group avatar and / or global chat background in a group chat session can be dynamically updated based on group information, which helps improve the user experience.

[0277] In some embodiments, the first electronic device may be an application server, and when generating the aforementioned candidate images for configuring the group image, the administrator of the group chat session may determine whether to update the group image, or based on which part of the aforementioned candidate images to update the group image.

[0278] For example, Figure 11 According to some embodiments of this application, a schematic diagram of the interaction flow of a session information update method is shown. For example... Figure 11 As shown, the method includes:

[0279] S1101, the first electronic device sends a group image voting request to the administrator device.

[0280] After determining the candidate image, the first electronic device can send a group image voting request to the administrator devices (all administrator devices or online administrator devices) in the group chat session. In some embodiments, the group image voting request may include the candidate image and the type of group image to be updated.

[0281] S1102, the administrator device sends the voting results to the first electronic device.

[0282] Upon receiving an image voting request, the administrator device can display a voting interface and obtain the voting option selected by the user in the voting interface. The administrator device can then send the user's voting result to the first electronic device. In some embodiments, the voting result indicates whether the user agrees to update the group image and / or the image selected by the user for updating the group image. For details, please refer to the aforementioned S803, which will not be elaborated upon here.

[0283] S1103, the first electronic device sends group image update information to group member devices.

[0284] S1104, Group member devices update global group image.

[0285] It should be noted that the contents of S1103 and S1104 can be referred to the contents of S804 and S805 mentioned above, and will not be repeated here.

[0286] based on Figure 11 In the illustrated embodiment, the global group avatar and / or global chat background in a group chat session can be dynamically updated based on group information, which helps improve the user experience.

[0287] In some embodiments, the first electronic device may be an application server, and when generating the aforementioned candidate images for configuring the group image, the group members of the group chat session (e.g., all group members or online group members) may determine whether to update the group image, or update the group image based on which part of the aforementioned candidate images.

[0288] For example, Figure 12 According to some embodiments of this application, a schematic diagram of the interaction flow of a session information update method is shown. For example... Figure 12 As shown, the method includes:

[0289] S1201, the first electronic device sends a group image voting request to the group member devices.

[0290] After determining candidate images for configuring a group chat session, the first electronic device may send a group image voting request to the devices of all group members (or online group members) in the group chat session (group member devices). In some embodiments, the group image voting request may include the candidate images and the type of group image to be updated by the candidate images.

[0291] S1202, group member devices send voting results to the first electronic device.

[0292] After receiving an image voting request, the group member device can prompt the user to vote on whether to update the group image and the target image. Then, the group member device can obtain the user's voting result and send it to the first electronic device. The specific methods by which the group member device prompts the user and obtains the voting result can be found in the aforementioned S803, and will not be repeated here.

[0293] S1203, the first electronic device sends group image update information to group member devices.

[0294] S1204, Group member devices update global group image.

[0295] It should be noted that S1203 and S1204 can refer to the content of S804 and S805 mentioned above, and will not be repeated here.

[0296] The following describes a technical solution for updating the local group image when the first electronic device is a group member device.

[0297] For example, Figure 13 According to some embodiments of this application, an interactive schematic diagram of a session information update method is shown. For example... Figure 13 As shown, the method includes:

[0298] S1301, the first electronic device updates the local group image based on the candidate image.

[0299] After determining the candidate image, the first electronic device can update the local group image based on the candidate image.

[0300] For example, if the candidate images include one or more images corresponding to the local group avatar, the first electronic device can update the aforementioned seventh image in the one or more images corresponding to the local group avatar to the local group image of the group chat session.

[0301] In some embodiments, if the candidate images include an image corresponding to a local group avatar, the seventh image may be that image corresponding to the local group avatar. If the candidate images include multiple images corresponding to local group avatars, the seventh image may be an image selected by the first user of the first electronic device from the multiple images corresponding to local group avatars.

[0302] For example, if the candidate images include one or more images corresponding to the local chat background, the first electronic device may update the aforementioned eighth image among the one or more images corresponding to the local chat background to the local chat background of the group chat session.

[0303] In some embodiments, if the candidate images include an image corresponding to a local chat background, the eighth image may be that image corresponding to the local chat background. If the candidate images include multiple images corresponding to local chat backgrounds, the eighth image may be an image selected by the first user of the first electronic device from the multiple images corresponding to the chat backgrounds.

[0304] S1302, the first electronic device sends the updated local group image to the application server.

[0305] After updating the local group image, the first electronic device can send the updated local group image to the application server.

[0306] S1303, the application server updates the local group image corresponding to the first user.

[0307] Upon receiving the updated local group image from the first electronic device, the application server can update the local group image of the first user corresponding to the first electronic device in the group chat session to the received updated local image.

[0308] Thus, when the first user of the first electronic device logs into the chat application on another electronic device other than the first electronic device, the user can obtain a local group image from the application server and display the group avatar and / or chat background of the group chat session on that other electronic device based on the obtained local group image.

[0309] The above embodiments illustrate the technical solution of this application by taking updating the group image in a group chat session as an example. The above solution is also applicable to updating the one-on-one chat image in a one-on-one chat session.

[0310] For example, the first electronic device can acquire conversation information of a one-on-one chat session (such as the chat topic, nicknames and notes of the two users in the one-on-one chat session, the relationship between the two users in the one-on-one chat session, and the emotions of the two users in the one-on-one chat session), and dynamically generate one or more images for configuring the one-on-one chat image (such as the chat background of the one-on-one chat session, the user's avatar in the one-on-one chat session, etc.) based on the conversation information. Then, the first electronic device can configure the one or more images as the one-on-one chat image for the one-on-one chat session.

[0311] For example, Figure 14 According to some embodiments of this application, a schematic diagram of a chat background that dynamically updates a one-on-one chat session is shown.

[0312] like Figure 14 As shown, user DD of the aforementioned mobile phone 100 established a one-on-one chat session with user EE (hereinafter referred to as the DD-EE session).

[0313] Mobile phone 100 can configure the chat background of the DD-EE session to a solid color when the DD-EE session is established.

[0314] After a DD-EE session is established, mobile phone 100 can periodically or non-periodically obtain session information from the DD-EE session to dynamically adjust the chat background of the DD-EE session. For example:

[0315] Mobile Phone 100 can determine the chat topic between User DD and User EE as "User DD is pursuing User EE" based on the chat content between User DD and User EE and the nickname (Goddess) configured by User DD for User EE, and set the chat background of the DD-EE session to User EE's avatar.

[0316] Mobile Phone 100 can also determine that users DD and EE are in a romantic relationship based on their chat content. Mobile Phone 100 can generate images indicating the romantic relationship between users DD and EE based on an image generation model, for example... Figure 14 The image shown includes portraits of user DD and user EE, and a heart shape. The mobile phone 100 can then configure this image, indicating the romantic relationship between user DD and user EE, as the chat background for the DD-EE session.

[0317] Mobile phone 100 can also configure chat backgrounds that indicate different emotions of user EE for DD-EE sessions based on user EE's mood. For example, if mobile phone 100 determines that user EE's mood is "angry" based on the chat content of the DD-EE session, mobile phone 100 can generate an image of user EE being angry based on an image generation model and configure the image of user EE being angry as the chat background of the DD-EE session.

[0318] Based on the above method, the mobile phone 100 can dynamically update the chat background of the DD-EE session, which helps to improve the user experience.

[0319] For example, Figure 15 According to some embodiments of this application, a flowchart illustrating a session update method for updating a one-on-one chat image is shown. The method is executed by a first electronic device, such as... Figure 15 As shown, the method includes:

[0320] S1501, Obtain the conversation information of the one-on-one chat session. The one-on-one chat session is a conversation between a third user and a fourth user of the first electronic device. The conversation information includes message frequency, chat topic, relationship between the third user and the fourth user, emotion of the third user, emotion of the fourth user, avatar of the third user, avatar of the fourth user, notes configured by the third user for the fourth user, notes configured by the fourth user for the third user, nickname of the third user, and nickname of the fourth user.

[0321] For example, for Figure 14 In the scenario shown, where the first electronic device is mobile phone 100 and the one-way chat session is a DD-EE session, the third user can be user EE, and the fourth user can be user DD. Mobile phone 100 can obtain the session information of the DD-EE session.

[0322] In some embodiments, the first electronic device may obtain session information of a one-on-one chat session if a fourth condition is met.

[0323] For example, the fourth condition includes at least one of the following: reaching a preset update cycle or update time; detecting an operation by the fourth user to update the one-on-one chat image; the number of messages in the one-on-one chat session reaching a number threshold between the current time and the last time the one-on-one chat image was updated; and at least one piece of information in the session information changing.

[0324] It should be noted that, in other embodiments, the first electronic device may also obtain the session information of the one-on-one chat session in other circumstances to trigger the generation of at least one image for updating the one-on-one chat image, and trigger the updating of the one-on-one chat image of the one-on-one chat session.

[0325] In some embodiments, the conversation information of a one-on-one chat session can be obtained by a chat application in the first electronic device, or by an image generation service in the first electronic device used to generate images (or by obtaining desensitized conversation information after the aforementioned desensitization processing).

[0326] S1502, based on the session information, determine at least one image for updating the one-on-one chat image displayed by the first electronic device, the one-on-one chat image including the chat background of the one-on-one chat session and the avatar of the third user.

[0327] In some embodiments, the first electronic device may generate at least one image based on session information using an image generation model, the at least one image being used to update the one-on-one chat image displayed by the first electronic device.

[0328] For example, the first electronic device may generate the at least one image by running an image generation model itself. For instance, the at least one image may be generated by the chat application (e.g., the first application) to which the one-on-one chat session belongs, by running an image generation model; or the first service (e.g., the aforementioned image generation service) may obtain session information from the first application to which the one-on-one chat session belongs, and the first service may generate the at least one image by using the image generation model.

[0329] For example, the above-mentioned at least one image may also be generated by an electronic device other than the first electronic device. For instance, the first electronic device may send de-identified session information obtained by de-identifying the session information to the second electronic device (such as the aforementioned AI server or application server), and receive at least one image generated by the second electronic device based on the de-identified session information through an image generation model.

[0330] It should be noted that the method by which the first electronic device determines at least one image for updating the one-on-one chat image based on session information can be referred to the aforementioned... Figures 5A to 5E The method by which the first electronic device in S602 determines at least one image for updating the group image based on group information will not be elaborated here.

[0331] S1503, configure the one-talk image of the one-talk session based on at least one image used to update the one-talk image displayed by the first electronic device.

[0332] Optionally, after determining at least one image for updating the one-on-one chat image displayed by the first electronic device, the first electronic device may update the one-on-one chat image of the one-on-one chat session based on the at least one image.

[0333] In some embodiments, the at least one image may include one or more images for configuring the chat background of a one-on-one chat session, and / or one or more images for configuring the avatar of a third user in a one-on-one chat session.

[0334] For example, at least one of the aforementioned images includes an eleventh image and / or a twelfth image. The first electronic device may also, in response to satisfying a fifth condition, update the avatar of the third user displayed on the first electronic device (e.g., the avatar of user EE displayed on mobile phone 100) from the thirteenth image to the eleventh image, and / or update the chat background of the one-on-one chat session displayed on the first electronic device from the fourteenth image to the twelfth image. The fifth condition includes at least one of the following: the fourth user confirms the update of the one-on-one chat image of the third user in the one-on-one chat session displayed on the first electronic device, and the one-on-one chat session is configured to automatically update the one-on-one chat image.

[0335] For example, the aforementioned at least one image may include multiple images for configuring a third user's avatar, and / or multiple images for configuring a chat background for a one-on-one chat session; and the aforementioned eleventh image is an image selected by the first user from the multiple images for configuring the third user's avatar; and / or the twelfth image is an image selected by the first user from the multiple images for configuring the chat background for a one-on-one chat session. In this way, the first electronic device can provide the first user with multiple images for configuring the third user's avatar / chat background displayed on the first electronic device, which is beneficial for improving the user experience.

[0336] In some embodiments, at least a portion of the above-mentioned session information is determined based on the historical chat logs of one-on-one chat sessions. For details, please refer to the method for generating group information based on chat logs from group chat sessions described earlier; it will not be repeated here.

[0337] based on Figure 15 According to the method, the first electronic device can obtain at least one image for configuring a one-on-one chat image based on the chat information of the one-on-one chat session. Compared with a fixed one-on-one chat image, this improves the user experience. Furthermore, since the generated at least one image is obtained based on one or more of the chat information, the at least one image can be associated with the information of the one-on-one chat session, which can improve the recognizability of the one-on-one chat image and its relevance to the one-on-one chat session.

[0338] This application also provides a computer program product, which may be a software or program product including instructions, capable of running on a computing device or stored on any usable medium. When the computer program product runs on at least one computing device, it causes the at least one computing device to implement the session information update method provided in this application.

[0339] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any storage medium (e.g., magnetic medium, optical medium, semiconductor medium, etc.) capable of storing and / or retrieving data by a computing device. The computer-readable storage medium includes instructions that direct a computing device to implement the session information update method provided in this application.

[0340] This application also provides an electronic device, which includes at least one processor for executing instructions to implement the session information update method provided in the foregoing embodiments.

[0341] For example, Figure 16 According to some embodiments of this application, a schematic diagram of the structure of an electronic device 1000 is shown. When the first electronic device is a terminal device, the first electronic device may adopt the same or similar structure as electronic device 1000.

[0342] like Figure 16 As shown, the electronic device 1000 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 01, an antenna 02, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0343] Processor 110 may include one or more processing units, such as a CPU, application processor, modem processor, GPU, image signal processor (ISP), microcontroller unit (MCU), video codec, digital signal processor (DSP), baseband processor, neural network processing unit (NPU), field-programmable gate array (FPGA), etc. In some embodiments, different processing units may be independent devices or integrated into one or more processors.

[0344] In some embodiments, the processor 110 may generate candidate images and update the group image of the group chat session based on the session information update method provided in the foregoing embodiments.

[0345] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.

[0346] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, display 194, camera 193, and wireless communication module 160, etc.

[0347] The wireless communication function of electronic device 1000 can be implemented through antenna 01, antenna 02, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0348] Antenna 01 and antenna 02 are used to transmit and receive electromagnetic wave signals.

[0349] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use in electronic devices 1000.

[0350] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 1000, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth (BT), global navigation satellite system (GNSS), near field communication (NFC), infrared (IR), and near link (NL).

[0351] In some embodiments, the electronic device 1000 can communicate with other electronic devices through the mobile communication module 150 and / or the wireless communication module 160, for example, sending image generation requests to the AI ​​server or application server, receiving candidate images generated by the AI ​​server or application server, sending group image update requests to the application server, and receiving group image voting requests and group image update messages sent by the application server.

[0352] Electronic device 1000 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0353] Display screen 194 is used to display images.

[0354] Camera 193 is used to capture still images or videos.

[0355] The external memory interface 120 can be used to connect an external memory card. The external memory card communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, application data can be stored on the external memory card.

[0356] Internal memory 121 can be used to store one or more programs and corresponding data. Internal memory 121 may include a program storage area and a data storage area. In some embodiments, the program storage area may store an operating system, at least one application required for a function, such as programs / instructions corresponding to the session information update methods provided in the foregoing embodiments (e.g., instructions for the aforementioned chat application, the aforementioned image generation service, the aforementioned image generation model, etc.). The data storage area may store data created during the use of electronic device 1000. In addition, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, general-purpose flash memory, etc. Processor 110 executes various functional applications of electronic device 1000 by running one or more programs stored in internal memory 121 and / or one or more programs stored in memory disposed in processor 110.

[0357] Electronic device 1000 can implement audio functions through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor. For example, audio module 170 can be used to play prompts.

[0358] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals.

[0359] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.

[0360] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.

[0361] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0362] The 170D headphone jack is used to connect wired headphones.

[0363] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The electronic device 1000 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 1000.

[0364] Motor 191 can generate vibration alerts. Indicator 192 can be an indicator light, used to indicate charging status, power level changes, or to indicate messages, notifications, etc. In some embodiments, electronic device 1000 can alert the user by controlling the vibration of motor 191.

[0365] The SIM card interface 195 is used to connect a SIM card or eSIM.

[0366] It should be noted that the structure of the electronic device 1000 shown in the embodiments of this application does not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than shown, or combine some components, or split some components, or have different component arrangements. The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0367] It should be noted that the electronic device 1000 can be any electronic device, including but not limited to mobile stations (MS) and mobile terminals (MT). For example, the electronic device can be a mobile phone, smart TV, wearable device, tablet computer, desktop computer, laptop computer, virtual reality (VR) device, augmented reality (AR) device, terminal in industrial control, terminal in self-driving, terminal in remote medical surgery, terminal in smart grid, terminal in transportation safety, terminal in smart city, terminal in smart home, etc. This application does not limit the specific form of the electronic device 1000.

[0368] For example, Figure 17 According to an embodiment of this application, a schematic diagram of the structure of an electronic device 2000 is shown. When the first electronic device is an application server or a terminal device, the first electronic device may adopt the same or similar structure as electronic device 2000.

[0369] like Figure 17 As shown, the electronic device 2000 may include one or more processors 201, one or more memories 202, one or more communication interfaces 203, and a bus 204 for coupling the processors, memories, and communication units.

[0370] Processor 201 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0371] Memory 202 may include volatile memory, such as random access memory (RAM). Memory 202 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0372] The memory 202 stores executable program code, and the processor 201 executes the executable program code to implement the session information update method provided in each embodiment.

[0373] The communication interface 203 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the electronic device 2000 and other devices or communication networks.

[0374] Bus 204 serves as a pathway for information transmission between various components of electronic device 2000 (e.g., processor 201, memory 202, communication interface 203). For example, bus 204 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 17 The symbol is represented by only one line, but this does not mean that there is only one bus or one type of bus.

[0375] It should be noted that, Figure 17 The structure of the electronic device 2000 shown is only an example. In other embodiments, the electronic device 2000 may include more or fewer components, which is not limited here.

[0376] It should be noted that Electronic Device 2000 can be a desktop computer, server, laptop computer, or other form of terminal device / server, and is not limited here.

[0377] It should be noted that in the embodiments of this application, "or" describes the relationship between related objects, indicating that there can be two relationships. For example, A or B can mean either A or B, where A or B can be singular or plural.

[0378] It should be noted that the term "connection" used in the embodiments of this application describes the connection relationship between two objects and can represent two kinds of connection relationships. For example, the connection between A and B can represent two situations: A is directly connected to B, and A is connected to B through C.

[0379] It should be noted that in the embodiments of this application, terms such as "for example," "in some embodiments," "in another embodiment," "in yet another embodiment," and "exemplarily" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as an "example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the term "example" is intended to present concepts in a concrete manner.

[0380] It should be noted that the terms "first" and "second" used in the embodiments of this application are only used for descriptive purposes and should not be construed as indicating or implying relative importance or order. The term "equal to" in the embodiments of this application can be used with "greater than" to apply to technical solutions used when "greater than," and can also be used with "less than" to apply to technical solutions used when "less than." It should be noted that when "equal to" is used with "greater than," it is not used with "less than," and vice versa.

[0381] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.

[0382] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for updating session information, characterized in that, Applied to a first electronic device, the method includes: Obtain group information of a group chat session. The group information includes at least one of message frequency, chat topic, group service information, and group member information. The group member information includes one or more of the relationships between group members and the emotions of group members. The group service information includes one or more of the group service name, group service type, and group service progress. At least one image is determined based on the group information, wherein the at least one image is used to update the group image of the group chat session, the group image including the group avatar and / or chat background.

2. The method according to claim 1, characterized in that, The group information also includes at least one of the following: group member avatars, current group avatars, current chat background, group name, group announcements, group introduction, group member activity levels, group member nicknames, and group member remarks.

3. The method according to claim 1 or 2, characterized in that, Determining at least one image based on the group information includes: Based on the group information, the at least one image is generated using an image generation model.

4. The method according to claim 3, characterized in that, The process of obtaining group information for a group chat session includes: A first service in the first electronic device obtains the group information from a first application to which the group chat session belongs, wherein the at least one image is generated by the first service through the image generation model, and the at least one image is used by the first application to update the group image of the group chat session.

5. The method according to claim 1 or 2, characterized in that, Determining at least one image based on the group information includes: Send desensitized group information obtained by desensitizing the group information to a second electronic device, and receive at least one image generated by the second electronic device based on the desensitized group information through an image generation model.

6. The method according to any one of claims 1 to 5, characterized in that, The process of obtaining group information for a group chat session includes: In response to the fulfillment of the first condition, the group information of the group chat session is obtained.

7. The method according to claim 6, characterized in that, The first condition includes at least one of the following conditions: The preset update cycle or update time has been reached; The administrator of the group chat session was detected to have triggered an operation to update the group image; Between the current moment and the last time the group image was updated, the number of messages in the group chat session reached a threshold. At least one piece of information in the group information changes; The proportion of group members who confirm updating the group image in the group chat session reaches the second proportion; The number of group members whose group image is updated to a second number is confirmed during the group chat session. The group chat session includes group services; The group chat session includes a first user of the first electronic device, and the group chat session includes group services initiated by the first user.

8. The method according to any one of claims 1 to 7, characterized in that, The at least one image includes a first image and / or a second image; and the method further includes: In response to the fulfillment of the second condition, the group avatar configured in the group chat session is updated from the third image to the first image, and / or the chat background configured in the group chat session is updated from the fourth image to the second image.

9. The method according to claim 8, characterized in that, The second condition includes at least one of the following conditions: At least one group member with administrative privileges for the group chat session confirms the update of the group image; The group chat session is configured to automatically update the group image; The proportion of group members who confirm updating the group image in the group chat session reaches the first proportion; The number of group members who confirmed updating the group image in the group chat session reached a first number.

10. The method according to claim 8 or 9, characterized in that, The group chat session is a session within a first application, and the first user logged into the first application on the first electronic device has management permissions for the group chat session, or the first electronic device is an application server corresponding to the first application.

11. The method according to any one of claims 8 to 10, characterized in that, The at least one image includes multiple images for configuring the group avatar of the group chat session, and / or multiple images for configuring the chat background of the group chat session; The first image is an image selected by at least one group member in the group chat session from a plurality of images used to configure the group avatar of the group chat session, and / or the second image is an image selected by at least one group member in the group chat session from a plurality of images used to configure the chat background of the group chat session.

12. The method according to any one of claims 1 to 7, characterized in that, The group chat session is a session within the first application, and the at least one image includes a seventh image and / or an eighth image; furthermore, the method also includes: In response to the fulfillment of the third condition, the group avatar of the group chat session displayed by the first electronic device is updated from the ninth image to the seventh image, and / or the chat background of the group chat session displayed by the first electronic device is updated from the tenth image to the eighth image. The third condition includes at least one of the following conditions: In the first electronic device, the first user who logged in to the first application confirms and updates the group image displayed on the first electronic device. The first application is configured to automatically update the group image displayed on the first electronic device when the logged-in user is the first user.

13. The method according to any one of claims 1 to 12, characterized in that, At least some of the information in the group chat is determined based on the historical chat history of the group chat session.

14. A readable storage medium, characterized in that, The readable storage medium includes one or more programs that, when executed on an electronic device, cause the electronic device to implement the method for updating session information as described in any one of claims 1 to 13.

15. An electronic device, characterized in that, include: Memory, used to store one or more programs; At least one processor is configured to execute the one or more programs to cause the electronic device to implement the method for updating session information as described in any one of claims 1 to 13.

16. A program product, characterized in that, When the program product is executed on an electronic device, it causes the electronic device to implement the method for updating session information as described in any one of claims 1 to 13.