WO2024022472A1 - 一种信息处理方法、装置、设备及介质 - Google Patents

一种信息处理方法、装置、设备及介质 Download PDF

Info

Publication number
WO2024022472A1
WO2024022472A1 PCT/CN2023/109780 CN2023109780W WO2024022472A1 WO 2024022472 A1 WO2024022472 A1 WO 2024022472A1 CN 2023109780 W CN2023109780 W CN 2023109780W WO 2024022472 A1 WO2024022472 A1 WO 2024022472A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
information
editing
session
response
Prior art date
Application number
PCT/CN2023/109780
Other languages
English (en)
French (fr)
Inventor
蒋妍
刘静
张超
蒋程
贾潇
张昂
熊力
汪思翌
张永昊
赵晨
王重
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210912283.1A external-priority patent/CN115237291A/zh
Priority claimed from CN202210912251.1A external-priority patent/CN115270734A/zh
Priority claimed from CN202210907340.7A external-priority patent/CN115174509A/zh
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2024022472A1 publication Critical patent/WO2024022472A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information

Definitions

  • This application relates to the field of computer technology, and specifically to an information processing method, device, equipment and medium.
  • embodiments of the present application provide an information processing method, device, equipment and medium to re-edit the original message without withdrawing the original message, and then edit the session where the original message is located in the information flow area.
  • the display style is updated to remind users to check the session in time and improve the user experience.
  • an information processing method which method includes:
  • Obtain a first message which is a message sent after re-editing the original message that has been sent in the first session
  • the display style of the first session information in the information flow area is updated according to the first message; wherein the information flow area is the information of one or more sessions that meet the preset conditions in the communication client interface.
  • an information processing device which device includes:
  • An acquisition unit configured to acquire a first message, which is a message sent after re-editing the original message that has been sent in the first session;
  • An update unit configured to update the display style of the first session information in the information flow area according to the first message; wherein the information flow area is a communication client interface used to update one or more items that satisfy a preset condition.
  • the edited message for the original message is obtained, that is, the first message.
  • the display style of the first session information in the information flow area is updated according to the first message, so as to remind the user to view the messages in the first session through the updated display style, avoid missing messages, and improve the user experience.
  • a session-based message processing method which method includes:
  • a second message is obtained, the multimedia resources in the second message are different from the multimedia resources in the first message, and the multimedia resources include pictures and/or or video;
  • the second message is displayed in the session interface corresponding to the first session.
  • a session-based message processing device includes:
  • a control unit configured to control the first message to be in an editable state in response to a triggering operation for the first message in the session interface corresponding to the first session;
  • An acquisition unit configured to acquire a second message in response to an editing operation triggered for a first message in an editable state, where the multimedia resources in the second message are different from the multimedia resources in the first message.
  • Resources include images and/or videos;
  • a display unit configured to display the second message in the session interface corresponding to the first session in response to completion of editing.
  • the first message when the first user needs to re-edit a sent message, in response to the first user's triggering operation on the first message in the first session, the first message is controlled to be in an editable state, so that The first user can edit the first message.
  • the edited first message that is, the second message is obtained.
  • the multimedia resources in the second message are different from the multimedia resources in the first message.
  • a second message is displayed in the session interface corresponding to the first session. That is, through the technical solution provided by this application, the message can be re-edited without withdrawing the message, so that the multimedia resources included in the edited message are different from the multimedia resources included in the original message, enriching the message. Diversity of content improves user experience.
  • an information processing method which method includes:
  • the first message is a message that has been sent in the first session and is re-edited and sent again, and the second information indicates that the first message After editing, the first page is not the session message display page of the first session;
  • the second information is displayed on the first page at a position corresponding to the first message.
  • an information processing device which device includes:
  • the acquisition unit is used to acquire the second information corresponding to the first message in the first page; wherein the first message is a message that has been sent in the first session and is re-edited and then sent again, and the second information indicates The result of editing the first message, the first page is not the conversation message display page of the first conversation;
  • a display unit configured to display the second information at a position corresponding to the first message on the first page.
  • the second information corresponding to the first message is obtained, and the second information indicates the edited version of the first message. result.
  • the second information is displayed at a position corresponding to the first message in the first page including the first message.
  • the first page is not the session message display page of the first session, but is another page including the first message. That is, after the user edits and resends the first message in the first session, other pages including the first message will be updated in time, so that the user can also browse the edited message on other pages, thereby improving the user experience.
  • an electronic device including: a processor and a memory;
  • the memory is used to store instructions or computer programs
  • the processor is configured to execute the instructions or computer programs in the memory, so that the electronic device executes the method described in the eleventh aspect.
  • a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are run on a device, the device causes the device to execute the eleventh aspect. Methods.
  • a computer program product includes a computer program/instruction.
  • the computer program product includes a computer program/instruction.
  • the method described in the eleventh aspect is implemented.
  • Figure 1 is a flow chart of a method for obtaining a first message provided by an embodiment of the present application
  • Figure 2 is a schematic diagram of an editable control message provided by an embodiment of the present application.
  • Figure 3a is a schematic diagram of a PC-side message editing provided by an embodiment of the present application.
  • Figure 3b is a schematic diagram of a mobile terminal editing a message provided by an embodiment of the present application.
  • Figure 4a is a schematic diagram of an editable remaining duration provided by an embodiment of the present application.
  • Figure 4b is a schematic diagram of another editable remaining duration provided by an embodiment of the present application.
  • Figure 5a is a schematic diagram of an editable state provided by the embodiment of the present application.
  • Figure 5b is a schematic diagram of another editable state provided by the embodiment of the present application.
  • Figure 5c is a schematic diagram of another editable state provided by the embodiment of the present application.
  • Figure 6 is a schematic diagram of the interaction between a communication server and a communication client provided by an embodiment of the present application
  • Figure 7 is a flow chart of an information processing method provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of a conversation interface provided by an embodiment of the present application.
  • Figure 9a is a schematic diagram of an information flow area provided by an embodiment of the present application.
  • Figure 9b is a schematic diagram of another information flow area provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of an information processing device provided by an embodiment of the present application.
  • Figure 11 is a flow chart of a session-based message processing method provided by an embodiment of the present application.
  • Figure 12a is a schematic diagram of a first session in which pictures can be edited provided by an embodiment of the present application
  • Figure 12b is a schematic diagram of editing a picture provided by an embodiment of the present application.
  • Figure 13a is a schematic diagram of the completion of message editing on the PC side provided by the embodiment of the present application.
  • Figure 13b is a schematic diagram of the completion of message editing on a mobile terminal provided by an embodiment of the present application.
  • Figure 14 is a schematic diagram of a session-based message processing device provided by an embodiment of the present application.
  • Figure 15 is a flow chart of an information processing method provided by an embodiment of the present application.
  • Figure 16 is a schematic diagram of a conversation message display page provided by an embodiment of the present application.
  • Figure 17a is a schematic diagram of a reply message details page provided by an embodiment of the present application.
  • Figure 17b is a schematic diagram of another reply message details page provided by the embodiment of the present application.
  • Figure 18a is a schematic diagram of a topic details page provided by the embodiment of the present application.
  • Figure 18b is a schematic diagram of another topic details page provided by the embodiment of the present application.
  • Figure 19 is a schematic diagram of triggering secondary editing provided by an embodiment of the present application.
  • Figure 20a is a schematic diagram of a secondary editing input box provided by an embodiment of the present application.
  • Figure 20b is a schematic diagram of another secondary editing input box provided by the embodiment of the present application.
  • Figure 21 is a schematic diagram of a second information display provided by an embodiment of the present application.
  • Figure 22 is a structural diagram of an information processing device provided by an embodiment of the present application.
  • Figure 23 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • embodiments of the present application provide an information processing method to re-edit the original message without withdrawing the original message, and then update the display style of the session where the original message is located in the information flow area to provide reminders.
  • Users can view re-edited messages in the conversation in real time. Specifically, after the user re-edits the original message that has been sent, the edited message, that is, the first message is obtained. Then, the display style of the first session information including the original message in the information flow area is updated according to the first message, so as to remind the user to check the messages in the first session in time, avoid missing messages, and improve the user experience.
  • Figure 1 is a flow chart of a method for obtaining a first message provided by an embodiment of the present application.
  • This method can be applied to a communication client, and the communication client can be a PC or a mobile terminal.
  • the method may include the following steps:
  • the original message may be a text message, a rich text message, a picture message, a video message, etc.
  • the first conversation may be a conversation group or a topic group.
  • the original message can be a message sent by the user, or a message sent by the user and quoted by others. That is, the user can edit the quoted message, and can also quote other people's messages for the user.
  • a message that is followed by a reply that is, the user can edit the reply message. That is, users can trigger re-editing of messages sent by themselves.
  • the first conversation is a topic group
  • the original message may be a main post or a reply sent by the user.
  • the performance form when the original message is in the editable state may include: in response to the user's trigger operation on the original message, displaying a secondary editing input box, and displaying the original message in the secondary editing input box, and subsequent users can Re-edit the original message in the edit input box.
  • the secondary editing input box can be displayed in a special way, such as with a highlighted background color, to remind the user that the message is in an editable state.
  • the input cursor can be set to be displayed at the end of the original message to facilitate the user to edit the message.
  • the format control can be pre-set in the secondary editing input box.
  • the format toolbar can be displayed for adjusting the format of the original message displayed in the secondary editing input box. For example, adjust the font type, size, underline, bold, etc.
  • the original message can be controlled to display a secondary editing input box in the following manner.
  • the message menu corresponding to the original message can be displayed. Since the user has editing permissions for the messages sent by himself, when Edit message controls can be displayed in the message menu when the user is the sender of the original message.
  • the secondary editing input box can be displayed.
  • the first conversation is a conversation group, and the first conversation includes messages sent by User 1, User 2 and User 3.
  • the message menu 1201 may be displayed on the right side of the original message, and the message menu 201 includes an edit message control 1202.
  • the secondary editing input box can be displayed, and the original message can be displayed in the secondary editing input box. Since the first session can occur on the PC or the mobile terminal, considering that the display interfaces of the PC terminal and the mobile terminal are different, the display positions of the secondary editing input box on the PC terminal and the mobile terminal can be controlled to be different. For example, when the first conversation occurs on the PC side, the secondary editing input box can be controlled to be displayed at the position of the first message; when the first conversation occurs on the mobile terminal, the secondary editing input box can be controlled to be displayed on the mobile terminal. In the input box of the panel.
  • Figure 3a is a schematic diagram of a message editing on the PC side provided by an embodiment of the present application.
  • the secondary editing input box 1301 can be displayed at the position of the original message, and the input cursor is automatically positioned at the end of the message.
  • Multiple editing controls can be set in the secondary editing input box 1301, such as format control 1302, expression adding control 1303, mention control 1304, upload picture/video control 1305, cancel control 1306, save control 1307, etc.
  • the format control 1302 can be used to adjust the font type, size, add underline, bold, etc.
  • the expression adding control 1303 can be used to add expressions in messages
  • the mention control 1304 can be used to mention users
  • the video control 1305 can be used to upload pictures or videos
  • the cancel control 1306 is used to cancel the secondary editing of the message
  • the save control 1307 is used to re-display the edited message on the screen. That is, after the user clicks the save control 1307, the original message can be displayed.
  • the edited message is displayed at the message location.
  • the original message can be displayed in the input box of the input panel in the conversation interface, and the user can re-edit the original message in the input box.
  • the secondary editing input box is the input box of the input panel in the mobile session interface.
  • Figure 3b it is a schematic diagram of editing messages on a mobile terminal.
  • Multiple editing controls can also be set in the secondary editing input box 1308, such as expression adding control 1309, mention control 1310, upload picture/video control 1311, format control 1312, cancel control 1313, save control 1314, etc. Since the session display interface of the mobile terminal is limited, compared with the editing control of the PC terminal, a full-screen control 1315 can also be set in the secondary editing input box of the mobile terminal. Clicking the full-screen control 1315 can control the secondary editing input box to be displayed in full screen, which is convenient for users. Edit message.
  • the edit message control can be displayed in the message menu only in response to the triggering operation of the message menu for the original message and the user who triggered the operation is the sender of the original message. .
  • the edit message control will not be displayed in the displayed message menu.
  • the valid time for secondary editing of the message can be set in advance.
  • the user can trigger the secondary editing of the message sent; when the valid time for secondary editing is exceeded, the user cannot trigger the secondary editing operation of the message sent. .
  • the time when the user triggers the secondary editing of the message is within 24 hours from the sending time of the original message, the secondary editing operation of the message can be triggered; if After 24 hours, the user cannot trigger the secondary editing operation on the message.
  • the save control of the secondary editing input box can be set to be in an invalid state.
  • the user can re-edit the message in the secondary editing input box. Edit a message, but the edited message cannot be displayed on the screen.
  • the secondary editing input box may display a first prompt message for dynamically displaying the remaining editable duration and prompting the user to save the edited message in a timely manner.
  • a second prompt message may also be displayed to indicate that the editable time has ended.
  • the user is re-editing the message.
  • the first prompt message is displayed below the secondary editing input box, prompting that the remaining editable time is 60s.
  • the first prompt message displays that the remaining editable time is 59 seconds, until the remaining editable time ends, as shown in Figure 4b, a second prompt message is displayed, indicating that the user's editable time has ended.
  • the save control is in an invalid state, and the user cannot display the edited message on the screen.
  • a third prompt message may be displayed to instruct the user to choose to continue editing the original message or edit the second message. That is, in the same session, the user can only trigger the editing operation of one message at a time.
  • control the message corresponding to the selection operation to be in an editable state. That is, if the user chooses to continue editing the original message, the original message is controlled to be in an editable state; if the user chooses to edit the second message, the second message is controlled to be in an editable state and the original message is in a non-editable state.
  • the first original message 1501 sent by user 2 is "OK", and the second original message 502 sent is "I have no problem for the time being".
  • user 2 is editing the first original message 1501 at this time. If user 2 triggers the editing operation for the second original message 1502, a third prompt message 1503 will be displayed to indicate whether user 2 should go to Edit other messages, and can prompt User 2 that if they choose to edit other messages in this conversation, the current unsaved message changes will be lost, i.e. the original message before editing will be displayed.
  • the first original message 1501 is still controlled to be in an editable state, and the first conversation interface shown in Figure 5b is displayed; when user 2 chooses to continue the operation, it indicates that user 2 chooses to edit the first If there are two original messages 1502, the second original message 1502 is controlled to be in an editable state and the first conversation interface shown in Figure 5c is displayed.
  • the third message can be controlled to be in the editable state. That is, users can control messages in different conversations to be editable.
  • the first session can retain the draft of the edited message.
  • the user can continue to edit the message based on the previously edited message, providing the user with Convenience and improve user experience.
  • message types that support secondary editing can also be preset.
  • text messages or rich text messages can be set to support secondary editing, while pure video messages do not support secondary editing.
  • the specific setting can be based on actual applications, and this embodiment does not limit this.
  • the edited message which is the first message
  • Editing operations for the original message can include adding, modifying, deleting multimedia resources and other different types of operations.
  • adding multimedia resources it can be achieved by pasting, dragging, uploading controls, etc.
  • the first message may be displayed at the position of the original message in the first conversation. That is to say, users can re-edit the original message without withdrawing the original message, enriching the diversity of message content, without interrupting the original information flow, and ensuring the coherence of contextual information. At the same time, re-editing the original message without withdrawing the original message can provide a shorter modification path and improve the efficiency of editing messages.
  • the display of an edited mark at the end of the first message to prompt the user that the message is a new one. Edited message.
  • a pop-up window is displayed at the first message position to display the latest editing time of the first message.
  • the user can be set to have editing permissions only for the messages sent by the user, and the valid time period for the user to edit the messages can also be set.
  • the functional permissions for using the communication client can be set through the communication server.
  • Figure 6 is a schematic diagram of the interaction between a communication server and a communication client provided by an embodiment of the present application.
  • the method mainly includes the following steps:
  • the original message can be displayed on the screen of the communication client.
  • the communication client sends the storage information corresponding to the original message to the communication server.
  • the stored information may include the message identifier corresponding to the original message, the user who sent the original message, the sending time, the message content of the original message, etc.
  • S1602 in response to the user triggering the operation of sending the original message on the communication client, S1602 is executed first, and then S1601 is executed, or S1601 and S1602 are executed at the same time.
  • This embodiment does not limit the execution order of S1601 and S1602.
  • the communication server saves the storage information corresponding to the original message.
  • the communication server After receiving the storage information about the original message sent by the communication client, the communication server will save the storage information locally.
  • S1604 In response to the user triggering an editing operation on the original message on the communication client, send a display request to the communication server, where the display request is used to request display of the message menu.
  • the communication client triggers an editing operation for the original message. Based on the user's trigger operation, the communication client sends a request to display the message menu to the communication server.
  • the communication server determines whether the original message can be re-edited, and if so, sends a message menu including an edit message control to the communication client.
  • the communication server can determine whether the communication client corresponding to the user has enabled the secondary editing function, whether the user who triggered the editing operation is the sender of the original message, whether the type of the original message supports secondary editing, and whether the user who triggered the editing operation supports secondary editing. Whether the difference between the time and the time when the original message was sent is less than the preset duration, etc. If the above conditions are met, the communication server can send a message menu including an edit message control to the communication client, and the subsequent user can click the edit message control to The original message is re-edited.
  • the first message can be controlled to be in an editable state and the original message can be re-edited.
  • the communication client can obtain the first message and display the first message on the screen.
  • the communication client may send the message identifier of the first message to the communication server, so that the communication server may obtain relevant information of the first message based on the message identifier and update the corresponding stored information.
  • the message identifier of the first message is consistent with the message identifier of the original message.
  • the communication server updates the stored information corresponding to the original message based on the message identifier.
  • the communication server can obtain relevant information of the first message based on the message identifier, thereby updating the stored information corresponding to the original message.
  • the content of the original message can be updated to the content of the first message, and the update time corresponding to the stored information can also be increased, which is the latest editing time of the first message, so as to facilitate understanding of the detailed information of the message.
  • the change record of the original message can be retained on the communication server for easy viewing by the administrator of the communication client.
  • the principle of the user obtaining the first message is introduced. After the user obtains the first message, the first session information in the information flow area can be processed according to the first message. This will be described in detail below with reference to the accompanying drawings.
  • Figure 7 is a flow chart of an information processing method provided by an embodiment of the present application. The method may include the following steps:
  • the first message is a message sent after re-editing the original message that has been sent in the first conversation.
  • the principle of obtaining the first message can be referred to the above embodiments and will not be described again here.
  • S1702 Update the display style of the first session information in the information flow area according to the first message.
  • the information flow area is an area in the communication client interface used to sort and display one or more session information that meets preset conditions according to a preset sequence strategy. For example, all conversation information can be displayed in the information flow area, and can be displayed in order of the time when new messages are generated in the conversation. The conversation at the top of the information flow area has the latest time to generate new messages.
  • the session information can also be grouped in advance, each group including one or more session information, and only the information flow corresponding to the selected group is displayed in the information flow area to facilitate users to view the required session information. Preferably, it can be set to display only session information that generates new messages in the selected group, making the information flow area more concise and convenient for users to view.
  • the first session information is session information including the first message.
  • the first session information is displayed in the information flow area, it may include: user identification, message preview content, etc.
  • the user identification may include user avatar, user name, etc.
  • the message preview content is the content displayed in the first conversation information in the information flow area.
  • the information displayed in the message preview content can be set in advance.
  • the message preview content can be set to display the latest message in the conversation, or to display additional messages.
  • Urgent messages, or messages that display the @ symbol in the conversation can be set according to actual applications. No matter what type of message the information displayed in the message preview content is, when the information displayed in the message preview content changes after secondary editing, the message preview content will be updated according to the changed information, so that the user can view the message preview content through the message preview content. You can view updated information in a timely manner.
  • the following will introduce the display style of session information in the information flow area based on a scenario.
  • the conversation interface is the conversation interface of the communication client used by user 1.
  • the left side is the information flow area 1800, and the information flow area 1800 displays
  • the session information related to user 1 is included, including first session information 1801, second session information 1802 and third session information 1803.
  • Each session information can be displayed in the chronological order of generating new messages, that is, when the first session information is generated New messages are the latest, so they are displayed at the top of the information flow area.
  • Each session information may include a session avatar, session name, and message preview content, and the message preview content displayed in each session information may be the latest message content.
  • the message preview content of the first session information 1801 is 1804, that is, the latest message is a message sent by user 3, the message preview content of the second session information is 1805, which is a message sent by user 4, and the message preview of the third session information is 1805.
  • the preview content is 1806, which is a message sent by user 5.
  • the number of unread messages corresponding to the first session can be controlled to remain unchanged. That is, when the user re-edits the original message, the number of unread messages in the first conversation will not be affected.
  • the display position of the first session information in the information area can also be controlled according to the first message. For example, after the user edits and sends the first message, the display position of the first conversation information in the information flow area can be controlled to remain unchanged, so as not to destroy the display order of the original conversation information in the information flow area.
  • the first conversation information can be pinned to the top in the information flow area to remind the user to check the re-edited message in time to avoid missing the message.
  • updating the display style of the first conversation information in the information flow area according to the first message may include the following methods: when the message preview content of the first conversation information in the information flow area is the original When sending a message, the original message may be a message that is preset for display, and then the message preview content of the first session information is updated according to the first message. For example, when the original message sent by the user is the latest message in the first conversation and the message preview content displays the latest message, the message preview content of the first conversation information in the information flow area can be updated according to the first message.
  • a message when a message includes special marks such as mentioned identifiers and urgency, if the message is in an unread state, you can control the difference between the first session information that includes the special marks and the first session information that includes ordinary messages. Different display styles, and the status of whether the message has been read will also lead to different display styles of the first conversation information. The following will take the original message and whether the first message includes the mentioned identifier as an example, combined with whether the original message has been read. In the obtained status, a solution for updating the message preview content of the first session information is introduced. Since the display style of the message preview content does not change when both the original message and the first message include the mentioned identifier or neither includes the mentioned identifier, it can be mainly divided into two situations.
  • the user ID that sent the message can be displayed in the first conversation information in the information flow area. If the message is in read status, the user ID is no longer displayed.
  • the original message sent by the user includes the mentioned identifier, and the re-edited first message does not include the mentioned identifier
  • the original message is in an unread state, in addition to updating the information with the first message
  • the first session information in the information flow area is also updated. Displays the user ID of the user who sent the original message. If the original message is in the read state, then after obtaining the first message, there is no need to display the user ID corresponding to the user who sent the first message, and only the message preview content needs to be updated.
  • the original message in the first session is replaced with the first message.
  • the user when a user logs in to the communication client and does not open the session interface, when receiving a message from another user, the user will receive a new message notification pushed by the communication client to remind the user to receive the new message and check it in time.
  • the communication client is applied to the PC, if the user displays the communication client minimized in the bottom tray of the PC desktop, when a new message notification is received, the new message can be displayed in the minimized position of the communication client. Content pop-up window to push new message notifications to users.
  • a pop-up window including the new message content can be displayed on the notification bar above the mobile terminal interface to push it to User notification of new messages. If the user's mobile device is in the locked screen state, a pop-up window including new message content can also be displayed in the notification bar of the lock screen interface as a new message notification pushed to the user.
  • a user When a user receives a new message notification of an original message sent by another user, if the new message notification is in an unread state and the other user re-edits the original message and sends the edited first message, the user can push the first message to the user.
  • the new message notification of the first message prevents the user from missing the unread first message; if the new message notification of the original message is in the read state, the new message notification of the first message can no longer be pushed.
  • the display style of the first session information in the information flow area can be updated according to the first message, so as to remind the user to view the messages in the first session through the updated display style and avoid messages omissions to improve user experience.
  • FIG. 10 is a schematic diagram of an information processing device provided by an embodiment of the present application.
  • the device 1000 includes: an acquisition unit 1001 and an update unit 1002.
  • the acquisition unit 1001 is configured to acquire a first message, which is a message sent after re-editing the original message that has been sent in the first session.
  • the update unit 1002 is configured to update the display style of the first session information in the information flow area according to the first message; wherein the information flow area is a communication client interface that satisfies a preset condition. Or an area where information from multiple sessions is sorted and displayed according to a preset sequence strategy.
  • the device 1000 further includes: a control unit; a control unit specifically configured to put the information of the first session at the top of the information flow area; or, to keep the information of the first session in the information flow area. The location of the first session remains unchanged.
  • the update unit 1002 is specifically configured to: if the original message is the latest message in the first session, update the first session in the information flow area according to the first message.
  • the message preview content of the information is updated; if the message preview content of the first session information in the information flow area is the content of the original message, then the first session information in the information flow area is updated according to the first message.
  • the message preview content is updated.
  • the update unit 1002 is specifically configured to: if the original message includes the mentioned identifier and the first message does not include the mentioned identifier, according to whether the original message is The read status updates the message preview content of the first conversation information in the information flow area; or, if the original message does not include the mentioned identifier and the first message includes the mentioned identifier , updating the message preview content of the first session information in the information flow area according to the status of whether the original message has been read.
  • the update unit 1002 is specifically configured to: Read status, then delete the user ID corresponding to the user who sent the original message in the first conversation information in the information flow area; or, if the original message does not include the mentioned identifier and the first The message includes a mentioned identifier, and the update unit 1002 is specifically configured to, if the original message is in an unread state, display in the first session information in the information flow area the corresponding user name of the user who sent the original message. User ID.
  • the device 1000 further includes: a display unit; if the original message does not include the mentioned identifier and the first message includes the mentioned identifier, the display unit is specifically configured to The original message is replaced with the first message in the first conversation, and the mentioned identifier in the first message is highlighted in a preset manner.
  • the device 1000 further includes: a push unit; a push unit specifically configured to push the third message in response to obtaining the first message if the new message notification of the original message is in an unread state. A new message notification of a message; if the new message notification of the original message is in the read state, the new message notification of the first message will no longer be pushed.
  • control unit is further configured to control the number of unread messages corresponding to the first session to remain unchanged in response to obtaining the first message.
  • the display unit is further configured to, in response to obtaining the first message, display the first message at the position of the original message in the first session, and display the corresponding Edited status identification, and/or display the editing time corresponding to the first message.
  • the acquisition unit 1001 is specifically configured to respond to a triggering operation on an original message sent in the first session and control the original message to be in an editable state, where the editable state refers to allowing The original message is re-edited; in response to an editing completion operation triggered for the original message, a first message is obtained.
  • the acquisition unit 1001 is specifically configured to respond to a triggering operation of a message menu corresponding to an original message that has been sent in the first session, and the triggering user corresponding to the triggering operation is the original message.
  • the sender displays the edit message control in the message menu; in response to a triggering operation on the edit message control, a secondary editing input box is displayed, and the original message is displayed in the secondary editing input box.
  • the display unit is also used to display a secondary editing input box, the original message is displayed in the secondary editing input box, and the original message is displayed in the secondary editing input box.
  • the input cursor is displayed at the tail; a secondary editing input box is displayed, the original message is displayed in the secondary editing input box, and a format toolbar is displayed in response to the triggering operation of the format control in the secondary editing input box.
  • the format toolbar is used to adjust the format of the message displayed in the secondary editing input box.
  • the display unit is also configured to display the first prompt information if the remaining editable duration corresponding to the original message is less than or equal to the preset duration when the original message is in the editable state, and the The first prompt information is used to dynamically display the editable remaining duration of the original message.
  • the display unit is also configured to display second prompt information if the remaining editable time is zero, and the second prompt information indicates that the editable time has ended.
  • the display unit is also configured to display third prompt information for an editing operation triggered by the second message in the first session when the original message is in an editable state, and the third The prompt information indicates the selection of editing the original message or the second message; in response to the triggered selection operation, the message corresponding to the selection operation is controlled to be in an editable state.
  • the device 1000 further includes: a sending unit; a sending unit specifically configured to, in response to obtaining the first message, send the message identifier of the first message to the server, so that the service
  • the server updates the storage information corresponding to the original message according to the message identifier, and the storage information includes the content of the original message; the server is also used to record and update the update time corresponding to the storage information.
  • each unit in this embodiment please refer to the relevant descriptions in the above method embodiments.
  • the division of units in the embodiments of this application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • Each functional unit in the embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the processing unit and the sending unit may be the same unit or different units.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the sent message can be recalled and re-edited through the message recall function.
  • the withdrawal operation interrupts the original complete information flow, and the re-editing function after withdrawal is limited, affecting the user experience.
  • embodiments of the present application provide a session-based message processing method to edit the original message without interrupting the message flow, ensuring the coherence of contextual messages, enriching message content, and improving user experience.
  • the first message is controlled to be in an editable state, so that the first user The first message can be edited.
  • the edited first message which is the second message, can be obtained.
  • the multimedia resources in the second message are different from the multimedia resources in the first message.
  • the second message is displayed in the session interface corresponding to the first session.
  • Figure 11 is a flow chart of a session-based message processing method provided by an embodiment of the present application. This method can be executed by instant messaging software, and the instant messaging software can be applied to PC or mobile terminals.
  • the method may include the following steps:
  • the first message may be a text message, a rich text format message, a picture message, a video message, etc.
  • the rich text format is a text and graphic document format that is convenient for viewing on different devices and systems.
  • the first conversation may be a conversation group or a topic group.
  • the first message can be a message sent by the user, or a message sent by the user and quoted by others. That is, the user can edit the quoted message, and can also quote others for the user.
  • Reply message after the message that is, the user can edit the reply message. That is, users can trigger re-editing of messages sent by themselves.
  • the first conversation is a topic group
  • the first message may be a main post or a reply sent by the user.
  • the first message can be controlled to be in an editable state in the following manner.
  • a message menu corresponding to the first message can be displayed.
  • the message menu includes an edit message control.
  • the first conversation is a conversation group, and the first conversation includes messages sent by User 1, User 2 and User 3.
  • the message menu 1201 may be displayed on the right side of the message, and the message menu 1201 includes an edit message control 1202.
  • the user clicks the edit message control 1202 the message can be controlled to be in an editable state.
  • the editing message control when the message edited by the user is a text message or a rich text message, the editing message control can be displayed in the message menu; when the message edited by the user is a pure picture message, the message editing control can be displayed in the message menu.
  • the edit picture control is displayed in the window to facilitate users to distinguish the edited message content.
  • the presentation form when the first message is in the editable state may include: in response to a message editing operation triggered for the first message in the conversation interface corresponding to the first conversation, it may be displayed at the position of the first message in the conversation interface. Secondary editing input box, and the first message is displayed in the secondary editing input box. Subsequent users can re-edit the first message in the secondary editing input box.
  • a secondary editing input box is displayed on the input panel corresponding to the conversation interface, and the first message is displayed in the secondary editing input box.
  • the cursor can be set to be automatically positioned at the end of the first message by default.
  • the first conversation can occur in the instant messaging software on the PC side or in the instant messaging software on the mobile side.
  • the principles of re-editing messages on the PC side and the mobile side are similar.
  • the secondary editing input box can be controlled to be displayed at the position of the first message; when the first conversation occurs on the mobile terminal, the secondary editing input box can be controlled to be displayed on the mobile terminal. In the input box of the panel.
  • FIG. 3a is a schematic diagram of a PC-side message editing provided by an embodiment of the present application.
  • the secondary editing input box 1301 can be displayed at the position of the sent message, and the cursor is automatically positioned at the end of the message.
  • Multiple editing controls can be set in the secondary editing input box 1301: format control 1302, expression adding control 1303, mention control 1304, upload picture/video control 1305, cancel control 1306, save control 1307, etc., among which the format control 1302 can be used to edit message font format, add underline, add list serial number, etc.
  • Expression adding control 1303 can be used to add expressions in messages
  • mention control 1304 can be used to mention users
  • upload picture/video control 1305 can be used
  • the cancel control 1306 is used to cancel the secondary editing of the message
  • the save control 1307 is used to re-display the edited message on the screen. That is, after the user clicks the save control 1307, the edit can be displayed at the original message position. Later news.
  • the window size of the PC-side conversation interface can be adjusted.
  • the height of the secondary editing input box can be preset. and width. Specifically, the height of the secondary edit input box can be set to be less than a preset height, and the preset height can be set specifically based on actual applications. For example, the height of the secondary edit input box can be set to be less than 60% of the height of the session window.
  • the width of the secondary editing input box can be set according to the width of the session window.
  • the width of the secondary editing input box can be adaptively adjusted to a narrow width to align the input in the session interface.
  • the width of the box If there is a lot of content in the secondary edit input box, causing the height of the secondary edit input box to be greater than the preset height, a scroll bar can be displayed on the right side of the secondary edit input box to slide and display the content of the secondary edit input box.
  • the first message can be displayed in the input box of the conversation interface, and the user can re-edit the first message in the input box of the input panel.
  • Figure 3b it is a schematic diagram of editing messages on a mobile terminal.
  • Multiple editing controls can also be set in the secondary editing input box 1308, including: expression adding control 1309, mention control 1310, upload picture/video control 1311, format control 1312, cancel control 1313, save control 1314, etc. Since the session display interface of the mobile terminal is limited, a full-screen control 1315 can be set in the secondary editing input box of the mobile terminal. Clicking the full-screen control 1315 can control the secondary editing input box to be displayed in full screen to facilitate the user to edit messages.
  • the valid time for secondary editing of the message can be set in advance.
  • the user can trigger the secondary editing of the message sent; when the valid time for secondary editing is exceeded, the user cannot trigger the secondary editing operation of the message sent. .
  • the time when the user triggers the secondary editing of the message is within 24 hours from the sending time of the original message, the secondary editing operation of the message can be triggered; if After 24 hours, the user cannot trigger the secondary editing operation on the message.
  • the save control of the secondary editing input box can be set to be in an invalid state. That is, the user can edit the message in the secondary editing input box. , but the edited message cannot be displayed on the screen.
  • a countdown prompt function of the effective time can be set to prompt the user to edit the message in time and send it.
  • a pop-up window can be displayed at the position of the first message to display the countdown time in real time; if the first message is in an editable state , that is, the user is editing the first message, and the countdown time is displayed in real time at the position corresponding to the secondary editing input box to prompt the user to save the edited message in time.
  • the user is editing the message.
  • the 60s countdown time can be displayed in real time below the secondary editing input box.
  • the secondary edit input box displays a 59s countdown time until the countdown time ends, as shown in Figure 4b, prompting the user that the message editing time has ended.
  • the save control is in an invalid state, and the user cannot save the edited message.
  • the first message when the user re-edits the first message in the secondary editing input box, that is, the first message is in an editable state. If the user switches from the current first session to the second session and then switches back In the first session, the first message can still be controlled to be in an editable state. That is, the draft of the edited first message can be retained after switching sessions. When switching back to the original session, the user can still continue editing on the basis of the previously edited message.
  • First News provides users with convenience and improves user experience.
  • all default users can trigger editing operations for messages sent by themselves.
  • the administrator can activate secondary editing permissions for specific users, that is, only users who have activated secondary editing permissions can Only users can re-edit the sent message.
  • the administrator can also enable secondary editing permissions for specific types of messages, so that only specific types of messages can be re-edited.
  • the specific implementation method can be set in combination with actual application scenarios, and the embodiments of this application do not limit this.
  • the edited first message which is the second message
  • the first message and the second message include multimedia resources, such as text, graphics, images, sounds, movies, animations and other different forms, and the multimedia resources in the second message are different from the multimedia resources in the first message.
  • the editing operation for the first message may include many different types of operations such as adding, modifying, and deleting multimedia resources. Each type of editing operation will be introduced below.
  • the first multimedia resource is added to the first message, thereby obtaining the first multimedia resource including the first message.
  • the second message of the multimedia resource is the first message after editing. Specifically, in response to the multimedia resource adding operation triggered in the secondary editing input box of the first message, the first multimedia resource is added in the first message, thereby obtaining the multimedia resource including the added first multimedia resource. Second news.
  • the first multimedia resource may be a text message, a picture or a video, etc.
  • the adding operation for multimedia resources may include multiple types. For example, after copying the first multimedia resource, paste the first multimedia resource in the secondary editing input box to add the first multimedia resource to the first message. resource. You can also select the first multimedia resource and then drag the first multimedia resource into the secondary editing input box to add the first multimedia resource to the first message.
  • the first multimedia resource is a picture or video
  • the maximum space occupied by the pictures or videos included in each message can be set in advance.
  • a prompt message may be displayed to remind the user of the pictures and/or videos in the first message. Or the size of the video has reached the upper limit. You can delete the original picture or video and then add a new one.
  • the maximum number of pictures or videos included in each message can also be set in advance. When the number of pictures or videos added by the user when editing the first message reaches the maximum number, a prompt message can be displayed to prompt the user that the Delete the original pictures or videos and then add new ones.
  • a prompt message may also be displayed to remind the user that adding files of this type is not supported.
  • Figure 5a it is a schematic diagram of a prompt message for an addition operation.
  • restrictions on the uploaded multimedia resource can be set in advance.
  • the first multimedia resource is a picture/video
  • the second multimedia resource is deleted, thereby obtaining the information that does not include the first message.
  • Two multimedia resources for the second message Specifically, in response to the deletion operation of the second multimedia resource triggered in the secondary editing input box, the user deletes the second multimedia resource in the secondary editing input box, thereby obtaining the deletion of the second multimedia resource.
  • the second multimedia resource may be text messages, pictures, videos, etc.
  • the deleted second multimedia resource is the first message, that is, after all the content in the first message is deleted and saved, it can be determined that the first message is withdrawn.
  • this application also provides an optimal implementation method. After the user deletes all the contents of the first message, if the user clicks the save control, a second prompt message can be displayed at this time. Used to prompt the user whether to confirm the withdrawal of the first message. Further, the cancel control and the recall control can be displayed in the second prompt message.
  • the first message can be displayed in the secondary editing input box again, as shown in Figure 3a, or in the first session
  • the input box of the interface displays the first message, as shown in Figure 3b.
  • the confirmation operation is triggered to confirm the withdrawal of the first message.
  • a third prompt message may be displayed at the original position of the first message to remind the user that the first message has been withdrawn.
  • a re-edit control can be displayed at the original position of the first message for re-editing the first message. For example, after the user clicks the re-edit control, the first message can be displayed in the input box of the conversation interface and the first message can be re-edited. That is, for the re-editing operation triggered by the withdrawn first message, the secondary editing input box will not be displayed at the original position of the first message, and the edited message will be sent as a new message.
  • the valid time of the re-edit control can be set in advance, that is, the user can only click the re-edit control within the valid time to re-edit the withdrawn first message.
  • Re-edit When the validity time of the re-edit control exceeds, only the third prompt message is displayed at the original position of the first message, that is, only the mark that the message has been withdrawn is displayed, and the re-edit control is no longer displayed. The user cannot re-edit the withdrawn first message. information.
  • the third multimedia resource is modified, thereby obtaining the modified information.
  • the second message after the third multimedia resource.
  • the user can modify the third multimedia resource in the secondary editing input box and obtain the second message including the modified third multimedia resource.
  • the third multimedia resource may be text messages, pictures, videos, etc.
  • the modified third multimedia resource is a picture/video
  • the added pictures/videos are modified.
  • the principle of modifying the picture/video is the same. The following will introduce the principle of modifying the modified third multimedia resource when it is a picture or video.
  • a multimedia resource editing box containing an editing control is displayed, and in the multimedia resource editing A third multimedia resource can be displayed in the box.
  • the editing control can be used to edit and modify the third multimedia resource.
  • the modified third multimedia resource is obtained.
  • a second message including the modified third multimedia resource is obtained.
  • Figure 12a it is a schematic diagram of a conversation interface in an editable state.
  • the message sent by user 2 includes pictures.
  • user 2 can click the edit trigger control 1600 of the image in the secondary editing input box to trigger the editing operation on the image.
  • a multimedia resource editing box containing multiple editing controls is displayed, as shown in Figure 12b, which is a schematic diagram of picture editing.
  • the multimedia resource editing box 2610 includes: a reduction control 2601 and a magnification control 2602, used to adjust the size of the picture; a brush control 2603, which can be used to graffiti on the picture; and a mosaic control 2604, used to add Mosaic; text control 2605, used to add text information on pictures; also includes controls for adjusting the multimedia resource editing box, namely the minimize window control 2606, used to minimize the multimedia resource editing box; the maximized window control 2607, used for Maximize the multimedia resource editing box; close the window control 2608, used to close the multimedia resource editing box.
  • click the completion control 2609 to save the edited and modified picture and obtain the message including the modified picture.
  • S2103 In response to completing the editing, display the second message in the session interface corresponding to the first session.
  • the second message can be displayed in the session interface corresponding to the first session, that is, the edited second message can be displayed at the original position of the first message. That is to say, the user can re-edit the first message without withdrawing the first message, which not only enriches the diversity of the message content, but also displays the edited message in the position of the original first message without interrupting the original message. Information flow ensures the coherence of contextual information. At the same time, re-editing the first message without withdrawing the first message can provide a shorter modification path and improve the efficiency of editing the message.
  • the user After the user completes editing and displays the second message in the conversation interface, in one possible implementation, it is possible to control the display of an edited mark at the end of the second message to prompt the user that the second message has been re-edited. news.
  • the sending time of the first message can be displayed above the first message.
  • the second message is displayed at the original position of the first message, when the user controls the mouse to hover at the position of the second message or clicks on the second message, a pop-up window can also be displayed at the position of the second message for displaying the second message. The latest editing time of the message.
  • FIG 13a it is a schematic diagram of the upper screen display after user 2 edits the message, and the edited mark is displayed at the end of the edited message.
  • the time when the original message was sent is displayed as 10:00 above the edited message, and a pop-up window is displayed at the end of the edited message, which displays the time when the edited message was updated as 10:05.
  • the original sending time of the first message and the latest editing time of the second message can be displayed simultaneously below the second message.
  • the sending time of the original message is displayed below the edited message as 10:00, and to the right of the original message sending time, the time of updating the edited message is also displayed. to 10:36.
  • the principle of performing an editing operation on the first message in the conversation interface when the first conversation is a conversation group is introduced.
  • the principle of editing the first message can be referred to the above. The embodiments will not be described again here.
  • the messages sent by the user in the instant messaging software and the editing records of the messages can be saved on the server.
  • the instant messaging software in response to the user sending the first message to display it on the screen, can send the stored information corresponding to the first message to the server.
  • the stored information may include the message identifier corresponding to the first message, the user who sent the first message, the sending time, the message content of the first message, etc.
  • the server saves the storage information corresponding to the original message.
  • the message ID of the second message and the message content of the second message need to be sent to the server again for storage. It is convenient for subsequent administrators to view.
  • the message identifier of the first message is the same as the message identifier of the second message.
  • the method described in Figure 11 further includes: in response to completing the editing, sending information related to the second message to the server, so that the server sends the edited second message to the instant messaging software of each user in the session. .
  • the editing operation for the first message does not modify the picture in the first message
  • the information related to the second message sent to the server includes the identification corresponding to the picture, but does not include the content of the picture itself.
  • the server since the server has already stored the picture in the first message, when sending the second message to the server, only the modification can be sent. text message and the corresponding identification of the picture, without sending the content data of the picture, thereby reducing the cost of sending the content of the picture itself and reducing the occupation of bandwidth resources.
  • the server after sending the first message to the server, the server will save the picture identification and the corresponding picture content. Therefore, after sending the second message to the server, the server can find the corresponding picture content based on the picture identification.
  • embodiments of the present application also provide a session-based message processing device.
  • FIG 14 is a schematic diagram of a session-based message processing device provided by an embodiment of the present application.
  • the device 2000 includes: a control unit 2001, an acquisition unit 2002, and a display unit 2003.
  • the control unit 2001 is configured to control the first message to be in an editable state in response to a triggering operation for the first message in the session interface corresponding to the first session;
  • the Acquisition unit 002 configured to acquire a second message in response to an editing operation triggered for a first message in an editable state, the multimedia resources in the second message being different from the multimedia resources in the first message, the Multimedia resources include pictures and/or videos;
  • the display unit 2003 is configured to display the second message in the session interface corresponding to the first session in response to completion of editing.
  • the obtaining unit 2002 is specifically configured to add a first multimedia resource to the first message in response to an adding operation triggered for the first message in an editable state, and obtain A second message including the first multimedia resource; in response to a deletion operation triggered for the second multimedia resource in the first message in an editable state, deleting the second multimedia resource, obtaining A second message that does not include the second multimedia resource; in response to a modification operation triggered for a third multimedia resource in the first message that is in an editable state, performing a modification on the third multimedia resource Modify and obtain the second message including the modified third multimedia resource.
  • the acquisition unit 2002 is specifically configured to add a first multimedia resource to the first message in response to a multimedia resource addition operation triggered in the secondary editing input box of the first message. body resource, obtain a second message including the first multimedia resource, and the secondary editing input box includes the first message in an editable state.
  • the adding operation includes one or more of the following: pasting multimedia resources in the secondary editing input box; dragging multimedia resources to the secondary editing input box. ;Click the upload control in the secondary editing input box.
  • the acquisition unit 2002 is specifically configured to acquire the first multimedia resource in response to the add operation triggered for the first message in the editable state, and determine whether the first multimedia resource Whether the attribute value of the first multimedia resource satisfies the preset condition; if the attribute value of the first multimedia resource satisfies the preset condition, add the first multimedia resource to the first message, and obtain the first multimedia resource including the first Secondary message for multimedia resources.
  • the attribute value of the first multimedia resource satisfying a preset condition includes: the resolution of the first multimedia resource is less than or equal to a resolution threshold.
  • the display unit 2003 is also configured to display a first prompt message in response to the attribute value of the first multimedia resource not meeting the preset condition.
  • the message is used to prompt that the attribute value of the first multimedia resource does not meet the preset condition and does not support addition.
  • the acquisition unit 2002 is specifically configured to respond to an editing trigger operation triggered in the secondary editing input box for the third multimedia resource in the first message in an editable state, display A multimedia resource editing box containing an editing control, and displaying the third multimedia resource in the multimedia resource editing box; in response to a modification operation triggered on the third multimedia resource based on the editing control, obtaining the modified the third multimedia resource; in response to the editing completion operation, obtaining a second message including the modified third multimedia resource.
  • the device 2000 further includes: a withdrawal unit; a withdrawal unit configured to determine to withdraw the first message in response to triggering deletion of all content in the first message when the first message is in an editable state. First news.
  • the withdrawal unit is specifically configured to display a second prompt message when the first message is in an editable state and triggers deletion of all content in the first message, and the second prompt message indicates The user confirms to withdraw the first message; in response to the triggered confirmation operation, it is determined to withdraw the first message.
  • the display unit 2003 is further configured to, in response to determining to withdraw the first message, display a third prompt message at the position of the first message in the conversation interface and re-edit the message.
  • the third prompt message prompts that the first message has been withdrawn, and the re-editing control is used to re-edit the withdrawn first message.
  • control unit 2001 is also configured to switch the first user from the first session to the second session and then switch back to the third session when the first message is in an editable state.
  • a session controls the first message to still be in an editable state.
  • the first conversation is a conversation group, and the first message is a referenced message in the first conversation or a message replied based on the referenced message; or,
  • the first conversation is a topic group, and the first message is a main post or reply in the first conversation.
  • control unit 2001 is specifically configured to respond to a message editing operation triggered for a first message in a session interface corresponding to the first session, at the position of the first message in the session interface.
  • Display a secondary editing input box and display the first message in the secondary editing input box; or, in response to a message editing operation triggered for the first message in the session interface corresponding to the first session, in the session
  • the input panel corresponding to the interface displays a secondary editing input box, and the first message is displayed in the secondary editing input box.
  • the device 2000 further includes: a sending unit; a sending unit configured to send an identification corresponding to the picture to the server in response to the modification operation not being triggered for the picture in the first message. .
  • each unit in this embodiment please refer to the relevant descriptions in the above method embodiments.
  • the division of units in the embodiments of this application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • Each functional unit in the embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the processing unit and the sending unit may be the same unit or different units.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the secondary editing function can be used to re-edit and send the message without withdrawing the sent message.
  • a message may be referenced in multiple scenarios, for example, the message is used to create a topic, and when the message is re-edited in the session, how to reflect it in other referenced scenarios is an urgent technical issue that needs to be solved. .
  • this application provides an information processing method.
  • the second information corresponding to the first message in the first page is obtained.
  • the first message is a message that has been sent in the first conversation and has been re-edited and then sent again, and the second information indicates the result of the editing of the first message, which may include, for example, the edited message of the first message and the edited identifier.
  • the second information is displayed at a position corresponding to the first message on the first page, so that the user can view the edited results for the first message on the first page, improving the user experience. .
  • a prompt message is sent to the user to clearly remind the user that the operation requested will require the acquisition and use of the user's personal information. Therefore, users can autonomously choose whether to provide personal information to software or hardware such as electronic devices, applications, servers or storage media that perform operations of the technical solution of the present disclosure based on the prompt information.
  • the method of sending prompt information to the user may be, for example, a pop-up window, and the prompt information may be presented in the form of text in the pop-up window.
  • the pop-up window can also contain a selection control for the user to choose "agree” or "disagree” to provide personal information to the electronic device.
  • FIG. 15 is a flow chart of an information processing method provided by an embodiment of the present application.
  • the method can be executed by an information processing client, and the information processing client can be installed in an electronic device.
  • electronic devices can include mobile phones, tablets, laptops, desktop computers, vehicle-mounted terminals, wearable electronic devices, all-in-one machines, smart home devices and other devices with communication functions, or they can be devices simulated by virtual machines or simulators.
  • the method may include the following steps:
  • S3101 Obtain the second information corresponding to the first message in the first page.
  • the first message is a message that has been sent in the first conversation and has been re-edited and sent again. Specifically, the user can trigger a secondary editing operation on the first message in the session interface corresponding to the first session, thereby re-editing the first message without withdrawing the first message.
  • the second information indicates the edited result of the first message, and may include, for example, the edited message of the first message and an edited identifier, which indicates that the first message has been edited twice.
  • the first conversation may be a single chat conversation or a group conversation. When the first conversation is a group conversation, the first conversation may be a conversation group or a topic group.
  • the first page is not the session message display page of the first session, that is, the first page is not the session interface corresponding to the first session.
  • FIG. 16 shows a schematic diagram of the conversation message display page of the first conversation.
  • the first page may be a reply message details page or a topic details page.
  • the reply message details page displays to the user the quoted reply messages in the first conversation and the messages that quote the replies.
  • the first message is the quoted reply in the first conversation. messages, or messages that reference and reply to other messages.
  • the topic details page is used to display the messages of the topic in the first conversation.
  • the first message is the message in the topic created in the first conversation, and can be the main post or reply in the topic.
  • the reply message details page and the topic details page can be displayed in the form of a sidebar of the first conversation, or can be displayed as a page independent of the first conversation.
  • Figure 17a shows a schematic diagram of a reply message details page.
  • the message sent by user 1 is used as a referenced message, and both user 2 and user 3 reply to the message sent by user 1.
  • the reply message details page 3300 is displayed in the sidebar, and the forwarding control 3301 and the close control 3302 can be displayed at the top of the reply message details page 3300.
  • the forwarding control 3301 is used to merge and forward the messages in this page
  • the closing control 3302 is used to close the reply message details page 3300.
  • the referenced message and the reply message can be displayed in the corresponding display area of the reply message details page 3300 .
  • prompt 3303 can also be displayed in the display area to prompt the number of reply messages.
  • FIG 17b is a display structure diagram of another reply message details page.
  • the reply message details page is displayed as an independent page.
  • a topic is created for the message sent by user 1, and the topic details page 3400 is displayed on the conversation interface of the first conversation with a sidebar running.
  • the topic details page Page 3400 includes a forward control 3401 and a close control 3402.
  • the message sent by user 1 is used as the main post, and the message replied by user 2 is used as the reply post.
  • the topic details page is displayed in the form of an independent page.
  • secondary editing of the first message can be implemented in the following manner to obtain the second message corresponding to the first message, specifically including: in response to a triggering operation for the first message, controlling the first message In an editable state, the editable state means that the first message is allowed to be re-edited; in response to the editing completion operation triggered for the first message, the second message corresponding to the first message is obtained.
  • a message menu 3501 can be displayed on the right side of the message, and the message menu 3501 includes an edit message control 3502. When the user clicks the edit message control 3502, the message can be controlled to be in an editable state.
  • the presentation form when the first message is in the editable state may include: in response to a message editing operation triggered for the first message in the conversation interface corresponding to the first conversation, it may be displayed at the position of the first message in the conversation interface. Secondary editing input box, and the first message is displayed in the secondary editing input box. Subsequent users can re-edit the first message in the secondary editing input box.
  • a secondary editing input box is displayed on the input panel corresponding to the conversation interface, and the first message is displayed in the secondary editing input box.
  • the cursor can be set to be automatically positioned at the end of the first message by default.
  • the secondary editing input box 3600 can be displayed at the position of the sent message, and the cursor is automatically positioned at the end of the message.
  • the secondary editing input box 3600 may include a cancel control 3601 and a save control 3602.
  • the cancel control 3602 is used to cancel the secondary editing of the message
  • the save control 3602 is used to re-display the edited message on the screen, that is, the user clicks save. After controlling 3602, the edited message can be displayed at the original message location.
  • FIG 20b is a schematic diagram of another secondary editing input box.
  • the secondary edit input box 3603 includes a cancel control 3604 and a save control 3605.
  • the session message display page of the first session triggers the second editing of the first message, but in actual applications, the user can also trigger the second editing of the first message on any page that includes the first message.
  • Secondary editing of the message for example, triggering the secondary editing of the first message on the reply message details page, or triggering the secondary editing of the first message on the topic details page.
  • this embodiment in order to avoid frequently obtaining the second message corresponding to the first message and affecting the processing performance of the client, this embodiment can pre-set the trigger condition for obtaining the second message. When the trigger condition is met, the The second message corresponding to the first message.
  • the second message corresponding to the first message is obtained from the server according to the message identifier corresponding to the first message. That is, when the user enters the first page from another page, the client can actively obtain the second message corresponding to the first message from the server according to the message identifier corresponding to the first message.
  • the message identifier of the first message is the same as the message identifier of the message obtained after editing the first message, so the client can directly use the message identifier corresponding to the first message to obtain the edited result of the first message from the server.
  • Another situation is that if the first page is open, the second message corresponding to the first message sent by the server is received. That is, when the user keeps the first page open, the server can broadcast the second information corresponding to the first message, and the client receives the second information broadcast by the server.
  • S3102 Display the second information at the position corresponding to the first message on the first page.
  • the second message After obtaining the second information corresponding to the first message, the second message will be displayed on the first page at a position corresponding to the first message. That is, the edited result is displayed at the location of the original message.
  • the second message includes an edited message and an edited identifier for the first message, and the marked message and edited identifier are displayed at a position corresponding to the first message.
  • the message sent by user 2 in Figure 17a triggers secondary editing, and the edited message is "OK, received".
  • the conversation message display page and reply message details page of the first conversation will be displayed simultaneously. Shows the edited message along with the redacted words.
  • this embodiment provides a method for displaying the edited logo, specifically, according to the edited message
  • the format of the corresponding last line of content determines the display style of the edited logo. That is, when displaying the edited logo, it is necessary to consider whether the last line of content corresponding to the edited message has a special format, for example, the content of the last line is a list, etc., so that the edited logo can be displayed without affecting the display of the message.
  • the display style is determined to display the edited mark in a newly created input line. That is, when the content of the last line corresponding to the edited message has a special format, a new input line is added after the last line to display the edited mark on the new input line.
  • the display style to display the edited logo at the end of the last line of content.
  • the edited mark will be displayed at the end of the last line.
  • the second information corresponding to the first message is obtained, and the second information indicates the result of editing the first message.
  • the second information is displayed at a position corresponding to the first message in the first page including the first message.
  • the first page is not the session message display page of the first session, but is another page including the first message. That is, after the user edits and resends the first message in the first session, other pages including the first message will be updated in time, so that the user can also browse the edited message on other pages, thereby improving the user experience.
  • the draft function in order to enable the user to reply to other messages in a timely manner when secondary editing is triggered on the first message, the draft function will be supported. Specifically, if a reply to the second message is triggered when the first message is in the editing state, the first content and the first identification that have been edited for the first message are stored, and the first identification indicates that the first content is a secondary editing draft.
  • the second message may be a message in the first session or a message in another session, which is not limited in this embodiment. That is, after temporarily exiting the editing of the first message, the edited first content and the first identification will be saved so as to distinguish the first identification from the reply draft. Since only one message in the editing state is supported in the same session, for the first session, it is possible to know that the stored first content is the content for the first message without storing the message identifier of the first message.
  • the second content and the second identification responded to the second message are stored, and the second identification indicates that the second content is a reply draft.
  • Exiting the reply to the second message may be switching from the session in which the second message is located to another session, or switching from the reply to the second message to the reply to the third message in the same session. Since replies to multiple messages can be supported in the same session, when storing the second content replied to the second message, it is also necessary to store the message identifier corresponding to the second message in order to search for the message corresponding to the second message based on the message identifier. 2.
  • the reply draft stored in the message.
  • the first content in response to re-entering the editing state corresponding to the first message, the first content is obtained from the storage space, and the first content is displayed in the secondary editing input box. That is, when the secondary editing mode is restored, the stored secondary editing draft is read from the storage space, and the secondary editing draft is displayed in the secondary editing input box, so that the user can continue editing and improve the user experience.
  • the device 3000 may include an acquisition unit 3001 and a display unit 3002.
  • the acquisition unit 3001 is used to acquire the second information corresponding to the first message in the first page; wherein the first message is a message that has been sent in the first session and has been re-edited and sent again, and the second information Indicates the edited result of the first message and that the first page is not the conversation message display page of the first conversation;
  • the display unit 3002 is configured to display the second information at a position corresponding to the first message on the first page.
  • the obtaining unit 3001 is specifically configured to open the first page in response to a trigger, and obtain the second information corresponding to the first message from the server according to the message identifier corresponding to the first message. ; Or, if the first page is in an open state, receive the second information corresponding to the first message sent by the server.
  • the first page includes one or more of the following: a reply message details page; wherein the first message is a message that is quoted as a reply in the first conversation, or Messages that are quoted as replies to other messages; the reply message details page is used to display messages that are quoted as replies in the first conversation and messages that are quoted as replies to them.
  • Topic details page wherein the first message is a message in a topic created in the first conversation; and the topic details page is used to display messages on a topic in the first conversation.
  • the first conversation is a conversation group or a topic group.
  • the second information includes an edited message.
  • the second information also includes an edited identifier
  • the display unit 3002 is specifically configured to determine the edited identifier according to the format of the last line of content corresponding to the edited message.
  • a display style controlling the display of the edited identification at a position corresponding to the first message on the first page according to the display style.
  • the display unit 3002 is specifically configured to determine the display style to display the content in a newly created input line if the last line of content corresponding to the edited message has a target format.
  • the edited identifier is; if the last line of content corresponding to the edited message does not have a target format, the display style is determined to display the edited identifier at the end of the last line of content.
  • the acquisition unit 3001 is specifically configured to control the original first message to be in an editable state in response to a triggering operation on the first message.
  • the editable state refers to allowing Re-edit the first message; in response to an editing completion operation triggered for the first message, obtain second information corresponding to the first message.
  • the acquisition unit 3001 is specifically configured to display a secondary editing input box at the position of the first message in response to a message editing operation triggered for the first message.
  • the first message is displayed in the secondary editing input box; or, in response to a message editing operation triggered for the first message, a secondary editing input box is displayed on the input panel, and a secondary editing input box is displayed in the secondary editing input box.
  • the first message is specifically configured to display a secondary editing input box at the position of the first message in response to a message editing operation triggered for the first message.
  • the first message is displayed in the secondary editing input box; or, in response to a message editing operation triggered for the first message, a secondary editing input box is displayed on the input panel, and a secondary editing input box is displayed in the secondary editing input box.
  • the first message is specifically configured to display a secondary editing input box at the position of the first message in response to a message editing operation triggered for the first message.
  • the method further includes: a storage unit; the storage unit is configured to trigger a reply to the second message when the first message is in an editing state, and store the response to the first message.
  • the storage unit is also configured to store the second content replied to the second message if exiting the reply to the second message is triggered when replying to the second message. and a second identification indicating that the second content is a reply draft.
  • the acquisition unit 3001 is further configured to, in response to re-entering the editing state corresponding to the first message, acquire the first content from the storage space, and input The box displays the first content.
  • each unit in this embodiment please refer to the relevant descriptions in the above method embodiments.
  • the division of units in the embodiments of this application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • Each functional unit in the embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the processing unit and the sending unit may be the same unit or different units.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 23 is only an example, and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 4000 may include a processing device (eg, central processing unit, graphics processor, etc.) 4001, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 4002 or from a storage device 4008.
  • the program in the memory (RAM) 4003 executes various appropriate actions and processes.
  • various programs and data required for the operation of the electronic device 4000 are also stored.
  • the processing device 4001, ROM 4002 and RAM 4003 are connected to each other via a bus 4004.
  • An input/output (I/O) interface 4005 is also connected to bus 4004.
  • the following devices can be connected to the I/O interface 4005: input devices 4006 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 4007 such as a computer; a storage device 4008 including a magnetic tape, a hard disk, etc.; and a communication device 4009.
  • the communication device 4009 may allow the electronic device 4000 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 23 illustrates electronic device 4000 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication device 4009, or from the storage device 4008, or from the ROM 4002.
  • the processing device 4001 When the computer program is executed by the processing device 4001, the above functions defined in the method of the embodiment of the present disclosure are performed.
  • the electronic device provided by the embodiments of the present disclosure and the method provided by the above embodiments belong to the same inventive concept.
  • Technical details that are not described in detail in this embodiment can be referred to the above embodiments, and this embodiment has the same beneficial effects as the above embodiments. .
  • Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method provided by the above embodiments is implemented.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmd read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and server can communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can communicate with digital data in any form or medium.
  • Data communications e.g., communications network
  • communications networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device can perform the above method.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C” or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as an Internet service provider through Internet connection
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware. Among them, the name of the unit/module does not constitute a limitation on the unit itself under certain circumstances.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • At least one (item) refers to one or more, and “plurality” refers to two or more.
  • “And/or” is used to describe the relationship between associated objects, indicating that there can be three relationships. For example, “A and/or B” can mean: only A exists, only B exists, and A and B exist simultaneously. , where A and B can be singular or plural. The character “/” generally indicates that the related objects are in an "or” relationship. “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • At least one of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c” ”, where a, b, c can be single or multiple.
  • RAM random access memory
  • ROM read-only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disks, removable disks, CD-ROMs, or anywhere in the field of technology. any other known form of storage media.

Abstract

本申请公开了一种信息处理方法、装置、设备及介质,该方法包括:当用户对已发送的原始消息进行重新编辑时,获取针对原始消息编辑后的消息,即第一消息。根据第一消息对信息流区域中第一会话信息的展示样式进行更新,以通过更新后的展示样式提醒用户可查看第一会话中的消息,避免消息遗漏,提升用户使用体验。

Description

一种信息处理方法、装置、设备及介质
本申请要求于2022年7月29日提交中国专利局、申请号为202210907340.7、申请名称为“一种信息处理方法、装置、设备及介质”的中国专利申请的优先权,本申请还要求于2022年7月29日提交中国专利局、申请号为202210912251.1、申请名称为“一种基于会话的消息处理方法、装置、设备及介质”的中国专利申请的优先权,本申请还要求于2022年7月29日提交中国专利局、申请号为202210912283.1、申请名称为“一种信息处理方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,具体涉及一种信息处理方法、装置、设备及介质。
背景技术
目前,为提升沟通效率,用户将通过即时通信客户端进行信息的沟通。在一些应用场景下,用户在通过通信客户端发送消息时,可能由于各种原因导致发送的消息中存在错误信息,为使得用户可以及时补救,可以通过撤回功能将已发送的消息进行撤回后重新编辑。
发明内容
有鉴于此,本申请实施例提供一种信息处理方法、装置、设备及介质,以实现在不撤回原始消息的基础上,重新对原始消息进行编辑,进而对信息流区域中原始消息所在会话的展示样式进行更新,提醒用户及时查看会话,提升用户使用体验。
为实现上述目的,本申请提供的技术方案如下:
在本申请第一方面,提供了一种信息处理方法,所述方法包括:
获取第一消息,所述第一消息为在第一会话中对已发送的原始消息重新编辑后发送的消息;
根据所述第一消息对信息流区域中的第一会话信息的展示样式进行更新;其中,所述信息流区域为通信客户端界面中用于将满足预设条件的一个或多个会话的信息按照预设顺序策略进行排序展示的区域。
在本申请第二方面,提供了一种信息处理装置,所述装置包括:
获取单元,用于获取第一消息,所述第一消息为在第一会话中对已发送的原始消息重新编辑后发送的消息;
更新单元,用于根据所述第一消息对信息流区域中的第一会话信息的展示样式进行更新;其中,所述信息流区域为通信客户端界面中用于将满足预设条件的一个或多个会话的信息按照预设顺序策略进行排序展示的区域。
由此可见,本申请实施例具有如下有益效果:
本申请实施例中,当用户对已发送的原始消息进行重新编辑时,获取针对原始消息编辑后的消息,即第一消息。根据第一消息对信息流区域中第一会话信息的展示样式进行更新,以通过更新后的展示样式提醒用户可查看第一会话中的消息,避免消息遗漏,提升用户使用体验。
在本申请第三方面,提供了一种基于会话的消息处理方法,所述方法包括:
响应于针对第一会话对应的会话界面中的第一消息的触发操作,控制所述第一消息处于可编辑状态;
响应于针对处于可编辑状态的第一消息触发的编辑操作,获取第二消息,所述第二消息中的多媒体资源与所述第一消息中的多媒体资源不同,所述多媒体资源包括图片和/或视频;
响应于完成编辑,在所述第一会话对应的会话界面中显示所述第二消息。
在本申请第四方面,提供了一种基于会话的消息处理装置,所述装置包括:
控制单元,用于响应于针对第一会话对应的会话界面中的第一消息的触发操作,控制所述第一消息处于可编辑状态;
获取单元,用于响应于针对处于可编辑状态的第一消息触发的编辑操作,获取第二消息,所述第二消息中的多媒体资源与所述第一消息中的多媒体资源不同,所述多媒体资源包括图片和/或视频;
显示单元,用于响应于完成编辑,在所述第一会话对应的会话界面中显示所述第二消息。
由此可见,本申请实施例具有如下有益效果:
本申请实施例中,当第一用户需要对已发送的消息进行重新编辑时,响应于第一用户针对第一会话中第一消息的触发操作,控制该第一消息处于可编辑状态,从而使得第一用户可以对第一消息进行编辑。当第一用户完成对第一消息的编辑后,获得编辑后的第一消息,即第二消息。其中,第二消息中的多媒体资源与第一消息中的多媒体资源不同。响应于完成编辑,在第一会话对应的会话界面中显示第二消息。即,通过本申请提供的技术方案,能够在不撤回消息的情况下,对该消息进行重新编辑,从而使得编辑后的消息所包括的多媒体资源与原消息中所包括的多媒体资源不同,丰富消息内容的多样性,提升用户使用体验。
在本申请第五方面,提供了一种信息处理方法,所述方法包括:
获取第一页面中第一消息对应的第二信息;其中,所述第一消息为在第一会话中已发送且被重新编辑后再次发送的消息,所述第二信息指示所述第一消息经过编辑后的结果,所述第一页面不是所述第一会话的会话消息展示页;
在所述第一页面中与所述第一消息对应的位置处显示所述第二信息。
在本申请第六方面,提供了一种信息处理装置,所述装置包括:
获取单元,用于获取第一页面中第一消息对应的第二信息;其中,所述第一消息为在第一会话中已发送且被重新编辑后再次发送的消息,所述第二信息指示所述第一消息经过编辑后的结果,所述第一页面不是所述第一会话的会话消息展示页;
显示单元,用于在所述第一页面中与所述第一消息对应的位置处显示所述第二信息。
由此可见,本申请实施例具有如下有益效果:
本申请实施例中,当用户对第一会话中已发送的第一消息进行重新编辑后再次发送后,获取该第一消息对应的第二信息,该第二信息指示第一消息进行编辑后的结果。在包括第一消息的第一页面中与第一消息对应的位置处显示第二信息,该第一页面不是第一会话的会话消息展示页,而是其他的包括第一消息的页面。即,当用户在第一会话中对第一消息进行编辑重新发送后,将及时更新包括第一消息的其他页面,以使得用户在其他页面也可以浏览编辑后的消息,提升用户使用体验。
在本申请第七方面,提供了一种电子设备,所述设备包括:处理器和存储器;
所述存储器,用于存储指令或计算机程序;
所述处理器,用于执行所述存储器中的所述指令或计算机程序,以使得所述电子设备执行第十一方面所述的方法。
在本申请第八方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在设备上运行时,使得所述设备执行第十一方面所述的方法。
在本申请第九方面,提供了一种计算机程序产品,所述计算机程序产品包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现第十一方面所述的方法。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种获取第一消息的方法流程图;
图2为本申请实施例提供的一种控制消息可编辑的示意图;
图3a为本申请实施例提供的一种PC端编辑消息的示意图;
图3b为本申请实施例提供的一种移动端编辑消息的示意图;
图4a为本申请实施例提供的一种可编辑剩余时长的示意图;
图4b为本申请实施例提供的另一种可编辑剩余时长的示意图;
图5a为本申请实施例提供的一种可编辑状态的示意图;
图5b为本申请实施例提供的另一种可编辑状态的示意图;
图5c为本申请实施例提供的又一种可编辑状态的示意图;
图6为本申请实施例提供的一种通信服务端与通信客户端的交互原理图;
图7为本申请实施例提供的一种信息处理方法的流程图;
图8为本申请实施例提供的一种会话界面的示意图;
图9a为本申请实施例提供的一种信息流区域的示意图;
图9b为本申请实施例提供的另一种信息流区域的示意图;
图10为本申请实施例提供的一种信息处理装置的示意图;
图11为本申请实施例提供的一种基于会话的消息处理方法的流程图;
图12a为本申请实施例提供的一种图片可编辑的第一会话的示意图;
图12b为本申请实施例提供的一种编辑图片的示意图;
图13a为本申请实施例提供的一种PC端消息编辑完成的示意图;
图13b为本申请实施例提供的一种移动端消息编辑完成的示意图;
图14为本申请实施例提供的一种基于会话的消息处理装置的示意图;
图15为本申请实施例提供的一种信息处理方法流程图;
图16为本申请实施例提供的一种会话消息展示页示意图;
图17a为本申请实施例提供的一种回复消息详情页示意图;
图17b为本申请实施例提供的另一种回复消息详情页示意图;
图18a为本申请实施例提供的一种话题详情页示意图;
图18b为本申请实施例提供的另一种话题详情页示意图;
图19为本申请实施例提供的一种触发二次编辑示意图;
图20a为本申请实施例提供的一种二次编辑输入框示意图;
图20b为本申请实施例提供的另一种二次编辑输入框示意图;
图21为本申请实施例提供的一种第二信息显示示意图;
图22为本申请实施例提供的一种信息处理装置结构图;
图23为本申请实施例提供的一种电子设备结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在实际应用中,用户通过通信客户端发送消息时,由于各种原因可能导致发送的消息中存在错误信息。为方便用户及时补救,可以通过消息撤回功能将已发送的消息进行撤回后并重新编辑。
基于此,本申请实施例提供一种信息处理方法,以便实现在不撤回原始消息的情况下,重新对原始消息进行编辑,进而对信息流区域中原始消息所在会话的展示样式进行更新,以便提醒用户及时查看会话中重新编辑过的消息。具体地,当用户对已发送的原始消息进行重新编辑后,获取编辑后的消息,即第一消息。然后根据第一消息对信息流区域中包括原始消息的第一会话信息的展示样式进行更新,以便提醒用户及时查看第一会话中的消息,避免消息遗漏,提升用户使用体验。
为了便于理解本申请所提供的信息处理方法,下面将首先结合附图介绍用户获取第一消息的原理。
参见图1,图1为本申请实施例提供的一种获取第一消息的方法流程图,该方法可以应用于通信客户端,该通信客户端可以为PC端或者移动端。该方法可以包括以下步骤:
S1101:响应于针对第一会话中已发送的原始消息的触发操作,控制原始消息处于可编辑状态。
当用户在第一会话中发送原始消息后,如果想要重新编辑原始消息,可以触发针对原始消息的操作,控制原始消息处于可编辑状态,以使得用户可以对原始消息进行重新编辑。其中,该原始消息可以为文本消息、富文本格式消息、图片消息和视频消息等。
其中,该第一会话可以为对话群或者话题群。当第一会话为对话群时,该原始消息可以为用户发送的消息,也可以为用户发送后被别人引用的消息,即用户可以对该被引用的消息进行编辑,还可以为用户引用别人的消息后进行回复的消息,即用户可以对回复消息进行编辑。也就是,用户可以触发针对自身所发送的消息的重新编辑。当第一会话为话题群时,该原始消息可以为用户发送的主贴或者回帖。
其中,原始消息处于可编辑状态时的表现形式可以包括:响应于用户针对原始消息的触发操作,显示二次编辑输入框,并在二次编辑输入框中显示原始消息,后续用户可以在二次编辑输入框中重新编辑原始消息。其中,二次编辑输入框可以采用特殊的方式显示,例如高亮底色显示,以提示用户该消息处于可编辑状态。其中,当在二次编辑输入框中显示原始消息时,可以设置输入光标显示在原始消息的尾部,方便用户编辑消息。并且还可以在二次编辑输入框中预先设置有格式控件,当用于触发格式控件后,可以显示格式工具栏,用于调整二次编辑输入框中所显示的原始消息的格式。例如,调整字体的类型、大小、添加下划线、加粗等。
具体地,可以通过以下方式控制原始消息显示二次编辑输入框,响应于用户针对原始消息的触发操作,可以显示原始消息所对应的消息菜单,由于用户对自身发送的消息具有编辑权限,所以当用户为原始消息的发送者时,可以在该消息菜单中显示编辑消息控件。响应于用户针对编辑消息控件的触发操作,即可显示二次编辑输入框。如图2所示,该第一会话为对话群,在第一会话中包括用户1、用户2和用户3所发送的消息。当用户2触发自身所发送的原始消息后,可以在原始消息的右侧显示消息菜单1201,在该消息菜单201中包括编辑消息控件1202。当用户点击编辑消息控件1202后,即可显示二次编辑输入框,并在二次编辑输入框中显示原始消息。由于该第一会话可以发生在PC端,也可以发生在移动端,考虑到PC端和移动端的显示界面不同,可以控制二次编辑输入框在PC端和移动端的显示位置不同。例如,当第一会话发生在PC端时,可以控制二次编辑输入框显示在第一消息的位置处;当第一会话发生在移动端时,可以控制二次编辑输入框显示在移动端输入面板的输入框中。下面将结合附图进行具体介绍。
当第一会话发生在PC端时,参见图3a,为本申请实施例提供的一种PC端编辑消息的示意图。当用户2点击图2所示的编辑消息控件1202之后,可在原始消息的位置处显示二次编辑输入框1301,输入光标自动定位在消息的尾部。在二次编辑输入框1301中可以设置有多个编辑控件,如格式控件1302、表情添加控件1303、提及控件1304、上传图片/视频控件1305、取消控件1306以及保存控件1307等。其中,格式控件1302可以用于调整字体的类型、大小、添加下划线、加粗等等,表情添加控件1303可以用于在消息中添加表情,提及控件1304可以用于提及用户,上传图片/视频控件1305可以用于上传图片或视频,取消控件1306用于取消对消息的二次编辑,保存控件1307用于将编辑后的消息重新上屏显示,即用户点击保存控件1307后,即可在原消息位置处显示编辑后的消息。
当第一会话发生在移动端时,响应于针对原始消息的触发操作,可以在该会话界面中输入面板的输入框显示原始消息,用户可以在输入框中重新编辑原始消息。也就是,二次编辑输入框即为移动端会话界面中输入面板的输入框。如图3b所示,为一种移动端编辑消息的示意图。当用户2点击图2所示的编辑消息控件1202之后,原始消息显示为高亮文本,并且在二次编辑输入框1308,即输入面板的输入框中显示原始消息,输入光标自动定位在原始消息的尾部。在该二次编辑输入框1308中也可以设置有多个编辑控件,如表情添加控件1309、提及控件1310、上传图片/视频控件1311、格式控件1312、取消控件1313、保存控件1314等。由于移动端的会话显示界面受限,相比于PC端的编辑控件,在移动端的二次编辑输入框中还可以设置有全屏控件1315,点击全屏控件1315可以控制二次编辑输入框全屏显示,方便用户编辑消息。
需要说明的是,由于用户仅对自身发送的消息具有编辑权限,响应于针对原始消息的消息菜单的触发操作并且触发操作的用户为原始消息的发送者,才可以在消息菜单中显示编辑消息控件。当用户触发的消息为其他用户所发送的消息时,所显示的消息菜单中不展示编辑消息控件。
可选地,针对用户对所发送消息的二次编辑操作,可以预先设置对消息进行二次编辑的有效时间。当用户所发送的消息在二次编辑的有效时间内时,用户可以触发对所发送消息的二次编辑;当超过二次编辑的有效时间后,用户无法触发对所发送消息的二次编辑操作。例如,可以设置重新编辑消息的有效时间为24小时内,当用户触发对消息进行二次编辑的时间距离原消息的发送时间在24小时之内时,可以触发对消息的二次编辑操作;如果超过24小时,则用户无法触发对消息的二次编辑操作。例如可以设置原始消息所对应的消息菜单中不展示编辑消息控件,或者消息菜单中展示编辑消息控件,但是当用户点击编辑消息控件时,进行弹窗提示,指示该消息已超过可编辑有效时间。
其中,如果用户在二次编辑输入框中正在重新编辑消息时,到达了有效时间,可以设置二次编辑输入框的保存控件处于失效状态,在该情况下,用户可以在二次编辑输入框中编辑消息,但是无法使编辑后的消息上屏显示。为了避免用户编辑完成的消息无法显示,可以设置二次编辑有效时间的倒计时提示功能,用于提示用户及时保存编辑后的消息。具体地,当可编辑剩余时长小于或等于预设时长时,二次编辑输入框可以显示第一提示消息,用于动态显示可编辑剩余时长,提示用户及时保存所编辑的消息。当可编辑剩余时长为零时,还可以显示第二提示消息,用于指示可编辑时间已结束。下面以第一会话发生在PC端的应用场景为例进行介绍。
在该应用场景中,可以设置当可编辑剩余时长为1分钟(60s)时显示第一提示消息。如图4a所示,用户正在重新编辑该消息,当可编辑剩余时长为1分钟时,在二次编辑输入框的下方显示第一提示消息,提示可编辑剩余时间为60s,在经过1秒之后,第一提示消息中显示可编辑剩余时长为59s,直至可编辑剩余时长结束,如图4b所示,显示第二提示消息,指示用户可编辑时间已结束。此时保存控件处于失效状态,用户无法上屏显示编辑后的消息。
当用户在二次编辑输入框中编辑原始消息时,如果触发第一会话中第二消息的编辑操作,此时可以显示第三提示消息,指示用户选择继续编辑原始消息或者编辑第二消息。也就是,在同一会话中,用户每次只能触发一条消息的编辑操作。响应于用户触发的选择操作,控制与该选择操作所对应的消息处于可编辑状态。即,如果用户选择继续编辑原始消息,则控制原始消息处于可编辑状态;如果用户选择编辑第二消息,则控制第二消息处于可编辑状态,原始消息处于不可编辑状态。
以图5a所示的PC端第一会话为例,用户2发送的第一条原始消息1501内容为“好的”,发送的第二条原始消息502为“我暂时没有问题”。由图5a可知,此时用户2正在编辑第一条原始消息1501,如果此时用户2触发针对第二条原始消息1502的编辑操作,则会显示第三提示消息1503,指示用户2是否转至编辑其他消息,并且可以提示用户2如果选择编辑该会话中的其他消息,将会丢失当前未保存的消息更改,即显示编辑前的原始消息。当用户2选择返回为保存的编辑时,则控制第一条原始消息1501仍处于可编辑状态,显示图5b所示的第一会话界面;当用户2选择继续操作时,表明用户2选择编辑第二条原始消息1502,则控制第二条原始消息1502处于可编辑状态,显示图5c所示的第一会话界面。
可选地,当原始消息处于可编辑状态时,如果用户从第一会话中切换至第二会话,并且触发第二会话中针对第三消息的编辑操作,可以控制第三消息处于可编辑状态。即,用户可以控制不同会话中的消息均处于可编辑状态。此外,当用户从第一会话切换至第二会话时,第一会话可以保留所编辑消息的草稿,当用户切换回第一会话之后,可以在之前编辑消息的基础上继续编辑消息,为用户提供便利性,提升用户使用体验。
此外,还可以预先设置支持二次编辑的消息类型。例如,可以设置文本消息或富文本消息支持二次编辑,纯视频消息不支持二次编辑,具体可以结合实际应用进行设置,本实施例对此不做限定。
S1102:响应于针对原始消息触发的编辑操作,获取第一消息。
当原始消息处于可编辑状态时,针对该原始消息进行重新编辑即可获取编辑后的消息,也就是第一消息。针对原始消息的编辑操作,可以包括添加、修改、删除多媒体资源等多种不同类型的操作,在添加多媒体资源时,可以通过粘贴、拖拽、上传控件等方式实现。
当获取第一消息后,可以在第一会话中原始消息的位置处显示第一消息。也就是,用户可以在不撤回原始消息的情况下,对原始消息进行重新编辑,丰富消息内容的多样性,不打断原来的信息流,保证上下文信息的连贯性。同时,在不撤回原始消息的情况下,对原始消息进行重新编辑,可以提供较短的修改路径,提高编辑消息的效率。
可选地,当在第一会话界面中显示第一消息后,为了方便用户区分原始消息和已编辑消息,可以控制在第一消息的尾部显示已编辑的标记,用于提示用户该消息为重新编辑过的消息。此外,还可以控制显示第一消息的最新编辑时间。具体地,可以控制在第一消息的尾部同时显示已编辑的标记和最新的编辑时间,或者当用户控制鼠标在第一消息的位置处悬停,或者用户点击第一消息时,即可以在第一消息位置处显示弹窗,用于显示第一消息最新的编辑时间。
通过上述实施例可知,可以设置用户仅对自身发送的消息具有编辑权限,还可以设置用户编辑消息的有效时长,可选地,可以通过通信服务端对使用通信客户端的功能权限进行设置,下面将结合附图进行具体介绍。
参见图6,图6为本申请实施例提供的一种通信服务端与通信客户端的交互原理图。该方法主要包括以下步骤:
S1601:响应于用户在通信客户端触发发送原始消息的操作,使原始消息上屏显示。
当用户在通信客户端编辑完成原始消息并发送后,可以使原始消息在通信客户端上屏显示。
S1602:通信客户端向通信服务端发送原始消息对应的存储信息。
其中,存储信息可以包括原始消息对应的消息标识、发送该原始消息的用户、发送时间以及该原始消息的消息内容等。
其中,本实施例可以响应于用户在通信客户端触发发送原始消息的操作,先执行S1602,再执行S1601,或者同时执行S1601和S1602,本实施例对于S1601和S1602的执行顺序不进行限制。
S1603:通信服务端保存原始消息对应的存储信息。
通信服务端在接收到通信客户端发送的关于原始消息的存储信息后,将在本地保存该存储信息。
S1604:响应于用户在通信客户端触发针对原始消息的编辑操作,向通信服务端发送显示请求,该显示请求用于请求显示消息菜单。
当用户需要重新编辑原始消息时,在通信客户端触发针对原始消息的编辑操作,基于用户的触发操作,通信客户端向通信服务端发送显示消息菜单的请求。
S1605:通信服务端判断该原始消息是否可重新编辑,如果是,则向通信客户端发送包括编辑消息控件的消息菜单。
具体地,通信服务端可以判断该用户对应的通信客户端是否开启二次编辑功能、触发编辑操作的用户是否为原始消息的发送者、该原始消息的类型是否支持二次编辑、触发编辑操作的时间与发送原始消息的时间的差值是否小于预设时长等等,如果上述条件均满足,则通信服务端可以向通信客户端发送包括编辑消息控件的消息菜单,后续用户可以点击编辑消息控件对原始消息进行二次编辑。
S1606:响应于用户针对编辑消息控件的触发操作,通信客户端获取第一消息。
当用户点击编辑消息控件后,即可控制第一消息处于可编辑状态,重新编辑原始消息。当编辑完成后点击保存控件,通信客户端即可获取第一消息,并使第一消息上屏显示。
S1607:通信客户端向通信服务端发送第一消息的消息标识。
响应于获取第一消息,通信客户端可以向通信服务端发送该第一消息的消息标识,使得通信服务端可以根据该消息标识获取第一消息的相关信息,并更新相应的存储信息。其中,第一消息的消息标识与原始消息的消息标识一致。
S1608:通信服务端基于该消息标识更新原始消息所对应的存储信息。
通信服务端在获取第一消息的消息标识后,可以基于该消息标识获取第一消息的相关信息,从而对原始消息所对应的存储信息进行更新。例如,可以将原始消息的内容更新为第一消息的内容,还可以增加存储信息对应的更新时间,也就是第一消息最新的编辑时间,便于了解消息的详细信息。
可选地,可以在通信服务端保留原始消息的更改记录,方便通信客户端的管理员查看。或者,可以仅保存有查看需求的通信客户端的消息更改记录,对于不存在查看需求的,可以直接在原始消息的基础上进行更新,不保留更改记录。
在以上实施例中介绍了用户获取第一消息的原理,当用户获取第一消息后,即可根据第一消息对信息流区域的第一会话信息进行处理,下面将结合附图进行具体介绍。
参见图7,图7为本申请实施例提供的一种信息处理方法的流程图。该方法可以包括以下步骤:
S1701:获取第一消息。
该第一消息为第一会话中对已发送的原始消息重新编辑后发送的消息。获取第一消息的原理可参见以上实施例,在此不再赘述。
S1702:根据第一消息对信息流区域中的第一会话信息的展示样式进行更新。
其中,信息流区域为通信客户端界面中用于将满足预设条件的一个或多个会话信息按照预设顺序策略进行排序展示的区域。例如,在信息流区域中可以展示全部会话信息,并且可以按照会话中产生新消息的时间先后顺序进行展示,信息流区域中最靠顶部的会话产生新消息的时间最晚。还可以预先将会话信息进行分组,每个分组中包括一个或多个会话信息,在信息流区域中仅展示被选中的分组对应的信息流,方便用户查看需要的会话信息。优选地,可以设置在被选中的分组中,仅展示产生新消息的会话信息,使信息流区域更加简洁,方便用户查看。
其中,第一会话信息为包括第一消息的会话信息。当第一会话信息在信息流区域中进行展示时,可以包括:用户标识、消息预览内容等。其中,用户标识可以包括用户头像、用户名称等。消息预览内容为在信息流区域中展示在第一会话信息中的内容,其中,消息预览内容所展示的信息可以预先设置,例如,可以设置消息预览内容展示该会话中最新一条消息,或者展示加急类消息,或者展示该会话中存在@符号的消息等,可以结合实际应用进行设置。无论消息预览内容所展示的信息为哪类消息,当该消息预览内容所展示的信息经过二次编辑发生变化时,将根据变化后的信息对消息预览内容进行更新,以使得用户通过消息预览内容可以及时查看更新后的信息。下面将结合一种场景对信息流区域中会话信息的展示样式进行介绍。
如图8所示,为一种会话界面的示意图,该会话界面为用户1所使用的通信客户端的会话界面,在该会话界面中,左侧为信息流区域1800,该信息流区域1800中展示了与用户1相关的会话信息,包括第一会话信息1801、第二会话信息1802以及第三会话信息1803,每个会话信息可以按照产生新消息的时间顺序展示,也就是,第一会话信息产生新消息的时间最晚,所以展示在信息流区域的顶部。其中,每个会话信息中均可以包括会话头像、会话名称以及消息预览内容,每个会话信息所展示的消息预览内容可以为最新一条消息内容。例如,第一会话信息1801的消息预览内容为1804,即最新一条消息为用户3所发送的消息,第二会话信息的消息预览内容为1805,为用户4发送的消息,第三会话信息的消息预览内容为1806,为用户5发送的消息。当用户需要进入某个会话时,点击该会话,可以在信息流区域的右侧展示该会话的会话界面。例如,图8所示的会话界面中,右侧区域展示了第一会话的会话界面,包括用户1、用户2和用户3发送的消息。
可选地,当获取第一消息后,可以控制第一会话对应的未读消息数量保持不变。也就是,当用户对原始消息进行重新编辑后,不影响第一会话中未读消息的数量。另外,还可以根据第一消息控制第一会话信息在信息区域中的显示位置。例如,当用户编辑并发送第一消息后,可以控制第一会话信息在信息流区域中的显示位置保持不变,以免破坏信息流区域中原会话信息的显示顺序。或者,也可以获取第一消息后,在信息流区域中将第一会话信息置顶,以便提醒用户及时查看重新编辑的消息,避免消息遗漏。
在本公开的一种实施例中,根据第一消息对信息流区域中第一会话信息的展示样式进行更新时,可以包括以下方式:当信息流区域中第一会话信息的消息预览内容为原始消息时,此时原始消息可以为预先设置进行展示的消息,然后根据第一消息对第一会话信息的消息预览内容进行更新。例如,当用户发送的原始消息为第一会话中的最新一条消息并且消息预览内容展示最新一条消息时,则可以根据第一消息对信息流区域中第一会话信息的消息预览内容进行更新。
一般情况下,当消息中包括被提及标识符、加急等特殊标记时,如果该消息处于未读状态,可以控制包括特殊标记的第一会话信息与包括普通类消息的第一会话信息的展示样式不同,并且消息是否被读取的状态也会导致第一会话信息的展示样式不同,下面将以原始消息和第一消息中是否包括被提及标识符为例,结合原始消息是否被读取的状态,介绍对第一会话信息的消息预览内容进行更新的方案。由于当原始消息和第一消息均包括被提及标识符或者均不包括被提及标识符时,不改变消息预览内容的展示样式,因此主要可以分为两种情况,一种为原始消息包括被提及标识符且第一消息不包括被提及标识符,另一种为原始消息不包括被提及标识符且第一消息包括被提及标识符,下面将分别针对这两种情况进行说明。
(一)当原始消息包括被提及标识符且第一消息不包括被提及标识符时,根据原始消息是否被读取的状态对信息流区域中第一会话信息的消息预览内容进行更新。
通常情况下,当某一消息包括被提及标识符时,如果该消息处于未读状态,可以在信息流区域的第一会话信息中显示发送消息的用户标识。如果该消息处于已读状态,则不再显示用户标识。
参见图9a所示的信息流区域的示意图,当用户1接收到用户3发送的包括被提及标识符的消息时,如果该消息处于未读状态,会在第一会话信息中显示未读消息数量为1的标识,如1901所示。同时,在第一会话信息的尾部显示用户3的头像,如1902所示,以提示用户1发送该消息的用户为用户3。当用户1已读用户3所发送的消息时,未读消息的标识消除,并且在第一会话信息的尾部不再显示用户3的头像,即为图9b所示的信息流区域的示意图。
具体实现时,当用户所发送的原始消息包括被提及标识符,并且重新编辑后的第一消息不包括被提及标识符时,如果原始消息处于未读状态,除了用第一消息更新信息流区域的第一会话信息中消息预览内容外,还需要消除信息流区域的第一会话信息中发送原始消息的用户所对应的用户标识。如果原始消息处于已读状态,由于信息流区域的第一会话信息中发送原始消息的用户对应的用户标识已经消失,因此只需对消息预览内容进行更新即可。
(二)当原始消息不包括被提及标识符且第一消息包括被提及标识符时,根据原始消息是否被读取的状态对信息流区域中第一会话信息的消息预览内容进行更新。
具体实现时,如果原始消息处于未读状态,则获取第一消息后,除了用第一消息更新信息流区域的第一会话信息中的消息预览内容外,还在信息流区域的第一会话信息中显示发送原始消息的用户对应的用户标识。如果原始信息处于已读状态,那么在获取第一消息后无需再显示发送第一消息的用户对应的用户标识,只需要更新消息预览内容。
此外,当原始消息不包括被提及标识符且第一消息包括被提及标识符时,在流区域的第一会话信息中的消息预览内容中,用第一消息替换第一会话中的原始消息后,还可以控制第一消息中的被提及标识符按照预设方式进行突出显示。例如,可以将被提及标识符进行加粗、或者高亮显示,提醒用户及时查看包含被提及标识符的第一消息。
在实际应用中,当用户登录通信客户端后,如果没有打开会话界面,当接收到其他用户发送的消息时,会接收到通信客户端推送的新消息通知,提醒用户接收到新消息并及时查看。例如,当通信客户端应用于PC端时,如果用户将通信客户端在PC端桌面的底部托盘最小化显示,当接收到新消息通知时,可以在通信客户端最小化位置出显示包括新消息内容的弹窗,以推送给用户新消息通知。当通信客户端应用于移动端时,如果用户未点开通信客户端的会话界面,当接收到新消息通知时,可以在移动端界面上方的通知栏显示包括新消息内容的弹窗,以推送给用户新消息通知。如果用户移动端为锁屏状态,还可以在锁屏界面的通知栏中显示包括新消息内容的弹窗,作为推送给用户的新消息通知。
当用户接收到其他用户发送的原始消息的新消息通知时,如果该新消息通知处于未读状态,此时其他用户重新编辑原始消息并发送编辑后的第一消息时,可以向用户推送该第一消息的新消息通知,避免用户遗漏未读的第一消息;如果原始消息的新消息通知处于已读状态,则可以不再推送第一消息的新消息通知。
通过本申请所提供的信息处理方法,可以根据第一消息对信息流区域中第一会话信息的展示样式进行更新,以通过更新后的展示样式提醒用户可查看第一会话中的消息,避免消息遗漏,提升用户使用体验。
基于上述方法实施例,本申请实施例还提供一种信息处理装置。参见图10,为本申请实施例提供的一种信息处理装置的示意图,该装置1000包括:获取单元1001和更新单元1002。
获取单元1001,用于获取第一消息,所述第一消息为在第一会话中对已发送的原始消息重新编辑后发送的消息。
更新单元1002,用于根据所述第一消息对信息流区域中的第一会话信息的展示样式进行更新;其中,所述信息流区域为通信客户端界面中用于将满足预设条件的一个或多个会话的信息按照预设顺序策略进行排序展示的区域。
在一种可能的实现方式中,装置1000还包括:控制单元;控制单元,具体用于在所述信息流区域中将所述第一会话的信息置顶;或者,在所述信息流区域中保持所述第一会话的位置不变。
在一种可能的实现方式中,更新单元1002,具体用于若所述原始消息为所述第一会话中的最新一条消息,则根据所述第一消息对信息流区域中所述第一会话信息的消息预览内容进行更新;若信息流区域中所述第一会话信息的消息预览内容为所述原始消息的内容,则根据所述第一消息对信息流区域中所述第一会话信息的消息预览内容进行更新。
在一种可能的实现方式中,更新单元1002,具体用于若所述原始消息包括被提及标识符且所述第一消息不包括所述被提及标识符,根据所述原始消息是否被读取的状态对所述信息流区域中所述第一会话信息的消息预览内容进行更新;或者,若所述原始消息未包括被提及标识符且所述第一消息包括被提及标识符,根据所述原始消息是否被读取的状态对所述信息流区域中所述第一会话信息的消息预览内容进行更新。
在一种可能的实现方式中,若所述原始消息包括被提及标识符且所述第一消息不包括所述被提及标识符,更新单元1002,具体用于若所述原始消息处于未读状态,则消除所述信息流区域中所述第一会话信息中的发送所述原始消息的用户对应的用户标识;或者,若所述原始消息未包括被提及标识符且所述第一消息包括被提及标识符,更新单元1002,具体用于若所述原始消息处于未读状态,则在所述信息流区域中所述第一会话信息中显示发送所述原始消息的用户对应的用户标识。
在一种可能的实现方式中,装置1000还包括:显示单元;若所述原始消息未包括被提及标识符且所述第一消息包括被提及标识符,显示单元,具体用于在所述第一会话中用所述第一消息替换所述原始消息,并对所述第一消息中的所述被提及标识符按照预设方式进行突出显示。
在一种可能的实现方式中,装置1000还包括:推送单元;推送单元,具体用于若所述原始消息的新消息通知处于未读状态,响应于获取所述第一消息,推送所述第一消息的新消息通知;若所述原始消息的新消息通知处于已读状态,不再推送所述第一消息的新消息通知。
在一种可能的实现方式中,控制单元,还用于响应于获取所述第一消息,控制所述第一会话对应的未读消息数量保持不变。
在一种可能的实现方式中,显示单元,还用于响应于获取所述第一消息,在所述第一会话中的所述原始消息的位置处显示所述第一消息,以及显示对应的已编辑状态标识,和/或,显示所述第一消息对应的编辑时间。
在一种可能的实现方式中,获取单元1001,具体用于响应于针对第一会话中已发送的原始消息的触发操作,控制所述原始消息处于可编辑状态,所述可编辑状态是指允许对所述原始消息进行重新编辑;响应于针对所述原始消息触发的编辑完成操作,获取第一消息。
在一种可能的实现方式中,获取单元1001,具体用于响应于针对第一会话中已发送的原始消息对应的消息菜单的触发操作,且所述触发操作对应的触发用户为所述原始消息的发送者,在所述消息菜单中显示所述编辑消息控件;响应于对所述编辑消息控件的触发操作,显示二次编辑输入框,所述二次编辑输入框中显示所述原始消息。
在一种可能的实现方式中,显示单元,还用于显示二次编辑输入框,所述二次编辑输入框中显示所述原始消息,在所述二次编辑输入框中所述原始消息的尾部显示输入光标;显示二次编辑输入框,所述二次编辑输入框中显示所述原始消息,响应于对所述二次编辑输入框中格式控件的触发操作,显示格式工具栏,所述格式工具栏用于调整所述二次编辑输入框中所显示消息的格式。
在一种可能的实现方式中,显示单元,还用于若所述原始消息处于可编辑状态时所述原始消息对应的可编辑剩余时长小于或等于预设时长,显示第一提示信息,所述第一提示信息用于动态显示所述原始消息的可编辑剩余时长。
在一种可能的实现方式中,显示单元,还用于若所述可编辑剩余时长为零,显示第二提示信息,所述第二提示信息指示可编辑时间已结束。
在一种可能的实现方式中,显示单元,还用于若所述原始消息处于可编辑状态时针对所述第一会话中第二消息触发的编辑操作,显示第三提示信息,所述第三提示信息指示选择编辑所述原始消息或所述第二消息;响应于触发的选择操作,控制与所述选择操作对应的消息处于可编辑状态。
在一种可能的实现方式中,装置1000还包括:发送单元;发送单元,具体用于响应于获取所述第一消息,向服务端发送所述第一消息的消息标识,以使得所述服务端根据所述消息标识对所述原始消息对应的存储信息进行更新,所述存储信息包括所述原始消息的内容;所述服务端还用于记录更新所述存储信息对应的更新时间。
需要说明的是,本实施例中各个单元的具体实现可以参见上述方法实施例中的相关描述。本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,处理单元和发送单元可以是同一个单元,也可以是不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
另外,目前,为提升沟通效率,用户将通过即时通信软件进行信息的沟通。在一些应用场景下,用户在通过通信软件发送消息时,可能由于各种原因导致发送的消息中存在错误信息,为使得用户可以及时补救,可以通过撤回功能将已发送的消息进行撤回后重新编辑。然而,撤回操作使得原本完整的信息流会被打断,影响用户使用体验。
在一些应用场景下,用户通过通信软件发送消息时,由于各种原因可能导致发送的消息中存在错误信息。为使得用户可以及时补救,可以通过消息撤回功能将已发送的消息进行撤回后并重新编辑。然而,撤回操作使得原本完整的信息流被打断,而且撤回后的重新编辑功能受限,影响用户的使用体验。
基于此,本申请实施例提供了一种基于会话的消息处理方法,以便在消息流不被打断的情况下对原消息进行编辑,保证上下文消息的连贯性,丰富消息内容,提升用户使用体验。具体地,当第一用户需要对已发送的消息进行重新编辑时,响应于第一用户针对第一会话中第一消息的触发操作,控制该第一消息处于可编辑状态,从而使得第一用户可以对第一消息进行编辑。当第一用户完成对第一消息的编辑后,即可获得编辑后的第一消息,也就是第二消息。其中,第二消息中的多媒体资源与第一消息中的多媒体资源不同。响应于用户完成编辑的操作,在第一会话对应的会话界面中显示第二消息。通过本申请提供的技术方案,可以在不撤回消息的情况下,对该消息进行重新编辑,从而使得编辑后的消息所包括的多媒体资源与原消息中所包括的多媒体资源不同,丰富消息内容的多样性,提升用户使用体验。
为便于理解本申请所提供的技术方案,下面将结合附图进行介绍。参见图11,图11为本申请实施例提供的一种基于会话的消息处理方法的流程图,该方法可以由即时通信软件执行,该即时通信软件可以应用于PC端或者移动端。
该方法可以包括以下步骤:
S2101:响应于针对第一会话对应的会话界面中的第一消息的触发操作,控制第一消息处于可编辑状态。
当用户在第一会话中发送第一消息后,如果想要重新编辑第一消息,可以触发针对第一消息的操作,控制第一消息处于可编辑状态。其中,该第一消息可以为文本消息、富文本格式消息、图片消息和视频消息等,富文本格式是一种方便于不同的设备、系统查看的文本和图形文档格式。
其中,该第一会话可以为对话群或者话题群。当第一会话为对话群时,该第一消息可以为用户发送的消息,也可以为用户发送后被别人引用的消息,即用户可以对该被引用的消息进行编辑,还可以为用户引用别人的消息后进行回复的消息,即用户可以对回复消息进行编辑。也就是,用户可以触发针对自身所发送的消息的重新编辑。当第一会话为话题群时,该第一消息可以为用户发送的主贴或者回帖。
其中,可以通过以下方式控制第一消息处于可编辑状态,响应于用户针对第一消息的触发操作,可以显示第一消息所对应的消息菜单,在该消息菜单中包括编辑消息控件,当用户点击编辑消息控件后,即可以控制第一消息处于可编辑状态。如图2所示,该第一会话为对话群,在第一会话中包括用户1、用户2和用户3所发送的消息。当用户2触发自身所发送的消息后,可以在该消息的右侧显示消息菜单1201,在该消息菜单1201中包括编辑消息控件1202。当用户点击编辑消息控件1202后,即可控制该消息处于可编辑状态。
需要说明的是,由于用户对自身发送的消息具有编辑权限,当用户点击的消息为其他用户所发送的消息时,所显示的消息菜单中不展示编辑消息控件。
在一种可能的实现方式中,当用户所编辑的消息为文本消息或富文本消息时,可以在消息菜单中显示编辑消息控件;当用户所编辑的消息为纯图片消息时,可以在消息菜单中显示编辑图片控件,可以方便用户区分所编辑的消息内容。
其中,第一消息处于可编辑状态时的表现形式可以包括:响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,可以在该会话界面中第一消息的位置处显示二次编辑输入框,并在二次编辑输入框中显示第一消息,后续用户可以在二次编辑输入框中重新编辑第一消息。或者,响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,在会话界面对应的输入面板显示二次编辑输入框,在二次编辑输入框中显示第一消息。其中,当在二次编辑输入框中显示第一消息时,可以设置光标默认自动定位在第一消息的尾部。
在实际应用中,该第一会话可以发生在PC端的即时通信软件,也可以发生在移动端的即时通信软件,在PC端和移动端对消息进行重新编辑的原理相类似。考虑到PC端和移动端的显示界面不同,也可以控制二次编辑输入框在PC端和移动端的显示位置不同。例如,当第一会话发生在PC端时,可以控制二次编辑输入框显示在第一消息的位置处;当第一会话发生在移动端时,可以控制二次编辑输入框显示在移动端输入面板的输入框中。
参见图3a,为本申请实施例提供的一种PC端编辑消息的示意图。当用户2点击图2所示的编辑消息控件1202之后,即可在所发送消息的位置处显示二次编辑输入框1301,光标自动定位在消息的尾部。在二次编辑输入框1301中可以设置有多个编辑控件:格式控件1302、表情添加控件1303、提及控件1304、上传图片/视频控件1305、取消控件1306以及保存控件1307等,其中,格式控件1302可以用于编辑消息字体的格式、添加下划线、添加列表序号等,表情添加控件1303可以用于在消息中添加表情,提及控件1304可以用于提及用户,上传图片/视频控件1305可以用于上传图片或视频,取消控件1306用于取消对消息的二次编辑,保存控件1307用于将编辑后的消息重新上屏显示,即用户点击保存控件1307后,即可在原消息位置处显示编辑后的消息。为了方便用户在二次编辑输入框中更清楚地编辑消息,还可以在二次编辑输入框中设置全屏控件,当用户点击全屏控件后,即可控制二次编辑输入框在PC端会话界面进行全屏显示,方便用户编辑消息。
在实际应用场景中,PC端会话界面的窗口大小可以调整,为了便于用户在二次编辑输入框中重新编辑消息,同时不影响会话窗口显示其他必要信息,可以预先设置二次编辑输入框的高度和宽度。具体地,可以设置二次编辑输入框的高度小于预设高度,该预设高度可以结合实际应用具体设置,如可以设置二次编辑输入框的高度小于会话窗口高度的60%。二次编辑输入框的宽度可以跟随会话窗口的宽度进行设置,例如,当会话窗口的宽度小于预设宽度时,二次编辑输入框的宽度可以自适应地调整为窄宽度,对齐会话界面中输入框的宽度。如果二次编辑输入框的内容较多,导致二次编辑输入框的高度大于预设高度,可以在二次编辑输入框的右侧展示滚动条,用于滑动显示二次编辑输入框的内容。
当第一会话发生在移动端的即时通信软件时,响应于针对第一消息触发的消息编辑操作,可以在该会话界面的输入框显示第一消息,用户可以在输入面板的输入框中重新编辑第一消息。也就是,二次编辑输入框即为移动端会话界面中面板输入框。如图3b所示,为一种移动端编辑消息的示意图。当用户2点击图22所示的编辑消息控件1202之后,原消息显示为高亮文本,并且在二次编辑输入框1308,即面板的输入框显示原消息,光标自动定位在输入框中原消息的尾部。在该二次编辑输入框1308中也可以设置有多个编辑控件,包括:表情添加控件1309、提及控件1310、上传图片/视频控件1311、格式控件1312、取消控件1313、保存控件1314等。由于移动端的会话显示界面受限,在移动端的二次编辑输入框中可以设置有全屏控件1315,点击全屏控件1315可以控制二次编辑输入框全屏显示,方便用户编辑消息。
可选地,针对用户对所发送消息的二次编辑操作,可以预先设置对消息进行二次编辑的有效时间。当用户所发送的消息在二次编辑的有效时间内时,用户可以触发对所发送消息的二次编辑;当超过二次编辑的有效时间后,用户无法触发对所发送消息的二次编辑操作。例如,可以设置重新编辑消息的有效时间为24小时内,当用户触发对消息进行二次编辑的时间距离原消息的发送时间在24小时之内时,可以触发对消息的二次编辑操作;如果超过24小时,则用户无法触发对消息的二次编辑操作。
其中,如果用户在二次编辑输入框中正在重新编辑消息时,到达了有效时间,可以设置二次编辑输入框的保存控件处于失效状态,也就是,用户可以在二次编辑输入框中编辑消息,但是无法使编辑后的消息上屏显示。为了提示用户第一消息的有效编辑时间,也为了避免用户编辑完成的消息无法显示,可以设置有效时间的倒计时提示功能,用于提示用户及时编辑消息并发送。例如,当剩余的有效时间小于等于预设时长时,如果第一消息处于未编辑状态,可以在第一消息的位置处显示弹窗,用于实时显示倒计时时间;如果第一消息处于可编辑状态,也就是用户正在编辑第一消息,在二次编辑输入框对应的位置实时显示倒计时时间,用于提示用户及时保存所编辑的消息。下面以第一会话发生在PC端的应用场景为例进行介绍。
在该应用场景中,可以设置当剩余的有效时间为1分钟时进行倒计时提醒。如图4a所示,用户正在编辑该消息,当编辑消息剩余的有效时间为1分钟时,二次编辑输入框的下方可以实时显示60s倒计时时间。在经过1秒之后,二次编辑输入框显示59s倒计时时间,直至倒计时时间结束,如图4b所示,提示用户消息编辑时间已结束,此时保存控件处于失效状态,用户无法保存编辑的消息。
在一种可能的实现方式中,当用户在二次编辑输入框重新编辑第一消息时,即第一消息处于可编辑状态,如果用户从当前的第一会话切换到第二会话之后又切换回第一会话,此时仍可以控制第一消息处于可编辑状态,也就是,切换会话后可以保留编辑的第一消息的草稿,切换回原会话时用户仍可以在之前编辑消息的基础上继续编辑第一消息,为用户提供便利性,提升用户使用体验。
在上述实施例中,默认用户均可以触发针对自身发送消息的编辑操作,在一种可能的实现方式中,可以由管理员开通针对特定用户的二次编辑权限,即只有开通二次编辑权限的用户才可以对发送的消息进行二次编辑。还可以由管理员开启针对特定类型的消息进行二次编辑的权限,只有特定类型的消息才可以重新编辑。具体的实现方式可以结合实际应用场景进行设置,本申请实施例对此不做限定。
S2102:响应于针对处于可编辑状态的第一消息触发的编辑操作,获取第二消息。
当第一消息处于可编辑状态时,针对该第一消息进行重新编辑即可获取编辑后的第一消息,也就是第二消息。其中,第一消息和第二消息中均包括多媒体资源,例如文本、图形、图像、声音、影视、动画等多种不同的形式,并且第二消息中的多媒体资源与第一消息中的多媒体资源不同。针对第一消息的编辑操作,可以包括增加、修改、删除多媒体资源等多种不同类型的操作,下面将分别针对每种类型的编辑操作进行介绍。
(一)添加操作
当用户需要在第一消息中添加消息内容时,响应于针对处于可编辑状态的第一消息触发的多媒体资源添加操作,在该第一消息中添加第一多媒体资源,从而获取包括第一多媒体资源的第二消息,也就是编辑后的第一消息。具体地,响应于在第一消息的二次编辑输入框中所触发的多媒体资源添加操作,在第一消息中添加第一多媒体资源,从而获取包括所添加的第一多媒体资源的第二消息。
其中,该第一多媒体资源可以为文本消息、图片或视频等。针对多媒体资源的添加操作可以包括多种类型,例如,复制第一多媒体资源后,在二次编辑输入框中粘贴第一多媒体资源,实现在第一消息中添加第一多媒体资源。还可以选择第一多媒体资源后将第一多媒体资源拖拽到二次编辑输入框中,实现在第一消息中添加第一多媒体资源。另外,当第一多媒体资源为图片或者视频时,还可以点击二次编辑输入框中的上传图片/视频控件,从而选择需要添加的图片或者视频。例如,通过点击图3a中的上传图片/视频控件1305或者图3b中的上传图片/视频控件1311,实现图片或视频的添加。
可选地,为了避免用户在第一消息中添加的图片或视频过多,导致第一消息的文件过大,可以预先设置每条消息中所包括的图片或视频所占用的最大空间。当用户在第一消息中添加图片或视频时,第一消息中所包括的图片和/或视频所占用的空间达到了最大值,可以显示提示消息,以提示用户第一消息中的图片和/或视频的大小达到了上限值,可以删除原有的图片或视频后再添加新的图片或视频。或者,也可以预先设置每条消息中所包括的图片或视频的最大数量,当用户在编辑第一消息时所添加的图片或视频的数量达到最大数量时,可以显示提示消息,以提示用户可以删除原有的图片或视频后再添加新的图片或视频。
另外,当用户选择添加的第一多媒体资源为不支持类型的文件时,也可以显示提示消息,用于提示用户不支持添加该类型的文件。如图5a所示,为一种添加操作的提示消息示意图。当用户在二次编辑输入框中添加命名为“会议内容”的pdf文件时,显示“不支持添加该类型文件”的提示消息,即二次编辑输入框中无法添加pdf文件。
另外,当用户在第一消息中添加第一多媒体资源时,为保证所添加的第一多媒体资源上屏后能够被其他用户查看,可以预先设置针对所上传的多媒体资源的限制条件。当获取第一多媒体资源后,判断该第一多媒体资源的属性值是否满足预设条件,如果该第一多媒体资源的属性值满足预设条件,则可以添加该第一多媒体资源,从而获取包括第一多媒体资源的第二消息。如果该第一多媒体资源的属性值不满足预设条件,可以显示第一提示消息,用于提示用户第一多媒体资源的属性值不满足预设条件,不支持添加该第一多媒体资源。例如,当该第一多媒体资源为图片/视频时,可以判断该图片/视频的分辨率是否小于或等于分辨率阈值,如果是,表明该图片/视频的属性值满足预设条件,可以添加该图片/视频;否则,则表明该图片/视频的属性值不满足预设条件,不支持添加该图片/视频。
(二)删除操作
当用户需要在第一消息中删除消息内容时,响应于针对处于可编辑状态的第一消息中第二多媒体资源触发的删除操作,删除该第二多媒体资源,从而获取不包括第二多媒体资源的第二消息。具体地,响应于在二次编辑输入框中所触发的第二多媒体资源的删除操作,用户在二次编辑输入框中删除该第二多媒体资源,从而获取删除第二多媒体资源后的第二消息。其中,该第二多媒体资源可以为文本消息、图片或视频等。
在一种可能的实现方式中,当所删除的第二多媒体资源为第一消息时,也就是,删除第一消息中的所有内容并进行保存后,可以确定为撤回第一消息。为了避免用户误删除第一消息的全部内容,本申请还提供一种优选的实现方式,当用户删除第一消息中的所有内容后,如果用户点击保存控件,此时可以显示第二提示消息,用于提示用户是否确认撤回第一消息。进一步地还可以在在第二提示消息中显示取消控件和撤回控件,当用户点击取消控件时,,可以重新在二次编辑输入框显示第一消息,如图3a所示,或者在第一会话界面的输入框显示第一消息,如图3b所示。当用户点击撤回控件时,即触发确认操作,确认撤回第一消息。
在一种可能的实现方式中,当用户确认撤回第一消息后,可以在第一消息的原位置处显示第三提示消息,用于提示用户该第一消息已经被撤回。当第一消息被撤回之后,如果用户想要重新编辑第一消息,还可以在第一消息的原位置处显示重新编辑控件,用于重新编辑第一消息。例如,当用户点击重新编辑控件之后,可以在会话界面的输入框中显示第一消息,并对第一消息进行重新编辑。即,对于撤回后的第一消息触发的重新编辑操作,将不在第一消息的原位置显示二次编辑输入框,且编辑后的消息作为新消息发送。此外,当用户利用重新编辑控件对已撤回的第一消息进重新编辑时,可以预先设置重新编辑控件的有效时间,即用户仅可以在有效时间内点击重新编辑控件,对已撤回的第一消息进行重新编辑。当超过重新编辑控件的有效时间后,在第一消息的原位置处仅显示第三提示消息,即仅显示消息已撤回的标记,不再显示重新编辑控件,用户不可重新编辑已撤回的第一消息。
(三)修改操作
当用户需要在第一消息中修改消息内容时,响应于针对处于可编辑状态的第一消息中第三多媒体资源触发的修改操作,对第三多媒体资源进行修改,从而获取包括修改后的第三多媒体资源的第二消息。具体地,当第一消息处于可编辑状态时,用户可以在二次编辑输入框中修改第三多媒体资源,获取包括修改后的第三多媒体资源后的第二消息。其中,该第三多媒体资源可以为文本消息、图片或视频等。
当修改的第三多媒体资源为图片/视频时,可以分为两种不同的情况,一种为第一消息中原本包括图片/视频,针对第一消息中的图片/视频进行修改;另一种为第一消息中仅包括文本信息,不包括图片/视频,用户在二次编辑输入框中添加图片/视频后,对添加的图片/视频进行修改。针对上述两种情况,对图片/视频进行修改操作的原理相同,下面将针对修改的第三多媒体资源为图片或视频时,介绍执行修改操作的原理。
具体地,响应于在二次编辑输入框中针对处于可编辑状态的第一消息中第三多媒体资源触发的编辑触发操作,显示包含编辑控件的多媒体资源编辑框,并且在该多媒体资源编辑框中可以显示第三多媒体资源。其中,该编辑控件可以用于编辑修改第三多媒体资源。响应于基于编辑控件对第三多媒体资源触发的修改操作,获取修改后的第三多媒体资源。当编辑完成后,获取包括修改后的第三多媒体资源的第二消息。下面将结合附图对该修改操作进行介绍。
如图12a所示,为一种处于可编辑状态的会话界面的示意图。由图12a可知,用户2所发送的消息中包括图片。当消息处于可编辑状态时,用户2可以在二次编辑输入框中点击图片的编辑触发控件1600,触发针对图片的编辑操作。当触发图片的编辑操作之后,显示包含多个编辑控件的多媒体资源编辑框,如图12b所示,为一种图片编辑的示意图。在该多媒体资源编辑框2610中,包括:缩小控件2601和放大控件2602,用于调整图片的大小;画笔控件2603,可以利用画笔在图片上进行涂鸦等;马赛克控件2604,用于在图片上添加马赛克;文本控件2605,用于在图片上添加文本信息;还包括调整多媒体资源编辑框的控件,分别为最小化窗口控件2606,用于最小化多媒体资源编辑框;最大化窗口控件2607,用于最大化多媒体资源编辑框;关闭窗口控件2608,用于关闭多媒体资源编辑框。当修改完成图片后,点击完成控件2609,即可保存编辑修改后的图片,获取包括修改后的图片的消息。
S2103:响应于完成编辑,在第一会话对应的会话界面中显示第二消息。
当用户完成第一消息的编辑操作后,可以在第一会话对应的会话界面中显示第二消息,即在第一消息的原位置显示编辑后的第二消息。也就是,用户可以在不撤回第一消息的情况下,对第一消息进行重新编辑,不仅可以丰富消息内容的多样性,并且在原第一消息的位置显示编辑后的消息,不打断原来的信息流,保证上下文信息的连贯性。同时,在不撤回第一消息的情况下,对第一消息进行重新编辑,可以提供较短的修改路径,提高编辑消息的效率。
当用户完成编辑并在会话界面中显示第二消息后,在一种可能的实现方式中,可以控制在第二消息的尾部显示已编辑的标记,用于提示用户该第二消息为重新编辑过的消息。针对PC端的会话界面,当用户在第一消息位置处悬停时,即可在第一消息的上方显示第一消息的发送时间。在第一消息原位置处显示第二消息后,当用户控制鼠标在第二消息的位置处悬停或者点击第二消息时,还可以在第二消息位置处显示弹窗,用于显示第二消息最新的编辑时间。
如图13a所示,为用户2编辑消息后的上屏显示示意图,在编辑后消息的尾部显示已编辑的标记。当用户2在编辑后的消息处悬停时,在编辑后消息上方显示发送原消息的时间为10:00,在编辑后消息的尾部显示弹窗,显示更新编辑消息的时间为10:05。
针对移动端的会话界面,当用户点击第二消息时,可以在第二消息的下方同时显示原第一消息的发送时间和第二消息的最新编辑时间。如图12b所示,当用户2点击编辑后的消息时,在编辑后的消息下方显示原消息的发送时间为10:00,在原消息发送时间的右侧,同时显示更新编辑后的消息的时间为10:36。需要说明的是,上述实施例所提供的显示编辑时间的实现方式仅为示例性的说明,并非仅限于上述实现方式。
在以上实施例中介绍了当第一会话为对话群时,针对会话界面中第一消息执行编辑操作的原理,当第一会话为话题群时,针对第一消息的编辑操作的原理可参见上述实施例,在此不再赘述。
在一种可能的实现方式中,用户在即时通信软件所发送的消息,以及对消息的编辑记录,均可以保存在服务端。具体地,响应于用户发送第一消息使其上屏显示后,即时通信软件可以向服务端发送第一消息对应的存储信息。其中,该存储信息可以包括第一消息对应的消息标识、发送第一消息的用户、发送时间以及第一消息的消息内容等。然后由服务端保存原始消息对应的存储信息,当用户对第一消息进行重新编辑获取第二消息后,需要将第二消息的消息标识、第二消息的消息内容再次发送给服务端进行存储,方便后续管理员进行查看。其中,第一消息的消息标识与第二消息的消息标识相同。
可选地,图11所述的方法还包括:响应于完成编辑,向服务端发送第二消息相关的信息,以使得服务端向会话中的各用户的即时通信软件发送编辑后的第二消息。其中,如果针对第一消息的编辑操作未对第一消息中的图片进行修改,则向服务端发送的第二消息相关的信息中,包括图片对应的标识,而不包括图片的内容本身。
即当第一消息中包括图片时,用户未触发对第一消息中的图片的修改操作,由于服务端已经存储第一消息中的图片,则向服务端发送第二消息时,可以只发送修改的文本消息以及该图片对应的标识,而不需要发送该图片的内容数据,从而减少发送图片本身的内容的成本,降低对带宽资源的占用。这里,向服务端发送第一消息后,服务端会保存图片标识和对应的图片内容,因此,在向服务端发送第二消息后,服务端可根据图片标识查到对应的图片内容。
基于上述方法实施例,本申请实施例还提供一种基于会话的消息处理装置。参见图14,该图为本申请实施例提供的一种基于会话的消息处理装置的示意图,该装置2000包括:控制单元2001、获取单元2002以及显示单元2003。
控制单元2001,用于响应于针对第一会话对应的会话界面中的第一消息的触发操作,控制所述第一消息处于可编辑状态;
获取单元002,用于响应于针对处于可编辑状态的第一消息触发的编辑操作,获取第二消息,所述第二消息中的多媒体资源与所述第一消息中的多媒体资源不同,所述多媒体资源包括图片和/或视频;
显示单元2003,用于响应于完成编辑,在所述第一会话对应的会话界面中显示所述第二消息。
在一种可能的实现方式中,获取单元2002,具体用于响应于针对所述处于可编辑状态的第一消息触发的添加操作,在所述第一消息中添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息;响应于针对所述处于可编辑状态的第一消息中第二多媒体资源触发的删除操作,删除所述第二多媒体资源,获取不包括所述第二多媒体资源的第二消息;响应于针对所述处于可编辑状态的第一消息中第三多媒体资源触发的修改操作,对所述第三多媒体资源进行修改,获取包括修改后的第三多媒体资源的第二消息。
在一种可能的实现方式中,获取单元2002,具体用于响应于在所述第一消息的二次编辑输入框中触发的多媒体资源添加操作,在所述第一消息中添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息,所述二次编辑输入框包括所述处于可编辑状态的第一消息。
在一种可能的实现方式中,所述添加操作包括以下一种或多种:在所述二次编辑输入框中粘贴多媒体资源的操作;拖拽多媒体资源到所述二次编辑输入框的操作;点击所述二次编辑输入框中的上传控件的操作。
在一种可能的实现方式中,获取单元2002,具体用于响应于针对所述处于可编辑状态的第一消息触发的添加操作,获取第一多媒体资源,并判断所述第一多媒体资源的属性值是否满足预设条件;若所述第一多媒体资源的属性值满足所述预设条件,在所述第一消息添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息。
在一种可能的实现方式中,所述第一多媒体资源的属性值满足预设条件包括:所述第一多媒体资源的分辨率小于或等于分辨率阈值。
在一种可能的实现方式中,所述显示单元2003,还用于响应于所述第一多媒体资源的属性值不满足所述预设条件,显示第一提示消息,所述第一提示消息用于提示所述第一多媒体资源的属性值不满足所述预设条件,不支持添加。
在一种可能的实现方式中,获取单元2002,具体用于响应于在二次编辑输入框中针对所述处于可编辑状态的第一消息中第三多媒体资源触发的编辑触发操作,显示包含编辑控件的多媒体资源编辑框,并在所述多媒体资源编辑框中显示所述第三多媒体资源;响应于基于编辑控件对所述第三多媒体资源触发的修改操作,获取修改后的第三多媒体资源;响应于编辑完成操作,获取包括修改后的第三多媒体资源的第二消息。
在一种可能的实现方式中,装置2000还包括:撤回单元;撤回单元,用于响应于在所述第一消息处于可编辑状态且触发删除所述第一消息中所有内容,确定撤回所述第一消息。
在一种可能的实现方式中,撤回单元,具体用于在所述第一消息处于可编辑状态且触发删除所述第一消息中所有内容,显示第二提示消息,所述第二提示消息指示用户确认撤回所述第一消息;响应于触发的确认操作,确定撤回所述第一消息。
在一种可能的实现方式中,所述显示单元2003,还用于响应于确定撤回所述第一消息,在所述会话界面中所述第一消息的位置处显示第三提示消息以及重新编辑控件,所述第三提示消息提示所述第一消息已撤回,所述重新编辑控件用于对已撤回的第一消息进行重新编辑。
在一种可能的实现方式中,控制单元2001,还用于若所述第一消息处于可编辑状态时所述第一用户从所述第一会话切换至第二会话后又切换回所述第一会话,控制所述第一消息仍处于可编辑状态。
在一种可能的实现方式中,所述第一会话为对话群,所述第一消息为所述第一会话中的被引用的消息或基于所述被引用的消息所回复的消息;或,所述第一会话为话题群,所述第一消息为所述第一会话中的主贴或回帖。
在一种可能的实现方式中,控制单元2001,具体用于响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,在所述会话界面中的第一消息的位置处显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息;或者,响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,在所述会话界面对应的输入面板显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息。
在一种可能的实现方式中,所述装置2000还包括:发送单元;发送单元,用于响应于未对所述第一消息中的图片触发修改操作,向服务端发送所述图片对应的标识。
需要说明的是,本实施例中各个单元的具体实现可以参见上述方法实施例中的相关描述。本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,处理单元和发送单元可以是同一个单元,也可以是不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
另外,目前,为提升沟通效率,用户将通过即时通信客户端进行信息的沟通。在一些应用场景下,用户在通过通信客户端发送消息时,可能由于各种原因导致发送的消息中存在错误信息,为使得用户可以及时补救,可以通过撤回功能将已发送的消息进行撤回后重新编辑。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
目前,用户在通过通信客户端发送消息时,由于各种原因可能导致发送的消息中存在错误信息。为方便用户及时补救,可以通过二次编辑功能在无需对已发送的消息进行撤回的情况,对消息进行重新编辑并发送。然而,由于一条消息可能被引用在多个场景中,例如,该消息被用于创建话题,当该消息在会话中被重新编辑后,如何在其他被引用场景中进行体现是急需解决的技术问题。
基于此,本申请提供了一种信息处理方法,当用户需要浏览非会话消息展示页时,即第一页面,获取第一页面中第一消息对应的第二信息。其中,第一消息为第一会话中已发送且被重新编辑后再次发送的消息,第二信息指示第一消息经过编辑后的结果,例如可以包括第一消息经过编辑后的消息以及已编辑标识。在获取到第二信息时,在第一页面中与第一消息对应的位置处显示第二信息,从而使得用户可以在第一页面中查看针对第一消息经过编辑后的结果,提升用户使用体验。
可以理解的是,在使用本公开中各个实施例的技术方案之前,均会通过恰当的方式对所涉及的个人信息的类型、使用范围、使用场景等告知用户,并获得用户的授权。
例如,在响应于接收到用户的主动请求时,向用户发送提示信息,以明确的提示用户,其请求执行的操作将需要获取和使用到用户的个人信息。从而,使得用户可以根据提示信息来自主的选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供个人信息。
作为一种可选的但非限定的实现方式,响应于接受到用户的主动请求,向用户发送提示信息的方式例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或者“不同意”向电子设备提供个人信息的选择控件。
可以理解的是,上述通知和获取用户授权过程仅是示意性的,不对本公开的实现方式构成限定,其他满足相关法律法规的方式也可应用于本公开的实现方式中。
为便于理解本申请实施例提供的技术方案,下面将结合附图进行说明。
参见图15,该图为本申请实施例提供的一种信息处理方法流程图,该方法可以由信息处理客户端执行,该信息处理客户端可以安装在电子设备中。其中,电子设备可以包括移动电话、平板电脑、笔记本电脑、台式电脑、车载终端、可穿戴电子设备、一体机、智能家居设备等具有通信功能的设备,也可以是虚拟机或者模拟器模拟的设备。如图15所示,该方法可以包括如下步骤:
S3101:获取第一页面中第一消息对应的第二信息。
其中,第一消息为第一会话中已发送且被重新编辑后再次发送的消息。具体地,用户可以在第一会话对应的会话界面中触发针对第一消息的二次编辑操作,从而实现在不对第一消息撤回的情况下,对第一消息进行重新编辑。第二信息指示第一消息经过编辑后的结果,例如可以包括第一消息经过编辑后的消息以及已编辑标识,该已编辑标识指示该第一消息经过二次编辑。其中,第一会话可以为单聊会话,也可以为群组会话。当第一会话为群组会话时,该第一会话可以为对话群或话题群。
其中,第一页面不是第一会话的会话消息展示页,即第一页面不是第一会话对应的会话界面。例如,图16所示的第一会话的会话消息展示页示意图,在该会话消息展示页3200中可以展示用户在该会话中发送或接收的所有消息。第一页面可以是回复消息详情页或话题详情页,回复消息详情页用户展示第一会话中的被引用回复的消息及对其进行引用回复的消息,第一消息为第一会话中被引用回复的消息,或是对其它消息进行引用回复的消息。话题详情页用于展示第一会话中的话题的消息,第一消息为第一会话中创建的话题中的消息,可以为话题中的主帖或回帖。
其中,回复消息详情页和话题详情页,可以以第一会话的侧栏形式展示,也可以以独立于第一会话的页面展示。例如,图17a所示的一种回复消息详情页示意图,在该场景下,用户1发送的消息作为被引用的消息,用户2和用户3均对用户1所发送的消息进行回复。当用户针对任一回复的消息点击时,通过侧边栏的方式展示回复消息详情页3300,在回复消息详情页3300的顶部可以展示转发控件3301和关闭控件3302。其中,转发控件3301用于将该页面中的消息进行合并转发,关闭控件3302用于关闭回复消息详情页3300。在回复消息详情页3300对应的展示区域可以展示被引用的消息以及对其进行回复的消息。同时,在该展示区域还可以显示提示3303,以提示回复消息的数量。
参见图17b,该图为另一种回复消息详情页的展示结构图,在该场景下,回复消息详情页以独立页面的形式进行展示。
参见图18a所示的一种话题详情页示意图,在该场景下,针对用户1所发送的消息创建话题,话题详情页3400以侧边栏的行驶展示在第一会话的会话界面,该话题详情页3400中包括转发控件3401和关闭控件3402。在该话题详情页3400中,用户1发送的消息作为主帖,用户2所回复的消息作为回帖。
参见图18b所示的另一种话题详情页示意图,在该场景下,话题详情页以独立页面的形式进行展示。
在本公开的一个实施例中,可以通过以下方式实现对第一消息的二次编辑,获得第一消息对应的第二消息,具体包括:响应于针对第一消息的触发操作,控制第一消息处于可编辑状态,该可编辑状态是指允许对第一消息进行重新编辑;响应于针对第一消息触发的编辑完成操作,获取第一消息对应的第二消息。如图19所示,当用户1触发自身所发送的消息后,可以在该消息的右侧显示消息菜单3501,在该消息菜单3501中包括编辑消息控件3502。当用户点击编辑消息控件3502后,即可控制该消息处于可编辑状态。
其中,第一消息处于可编辑状态时的表现形式可以包括:响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,可以在该会话界面中第一消息的位置处显示二次编辑输入框,并在二次编辑输入框中显示第一消息,后续用户可以在二次编辑输入框中重新编辑第一消息。或者,响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,在会话界面对应的输入面板显示二次编辑输入框,在二次编辑输入框中显示第一消息。其中,当在二次编辑输入框中显示第一消息时,可以设置光标默认自动定位在第一消息的尾部。
参见图20a,为一种二次编辑输入框示意图,在该场景下,可在所发送消息的位置处显示二次编辑输入框3600,光标自动定位在消息的尾部。在二次编辑输入框3600中可以包括取消控件3601以及保存控件3602,取消控件3602用于取消对消息的二次编辑,保存控件3602用于将编辑后的消息重新上屏显示,即用户点击保存控件3602后,即可在原消息位置处显示编辑后的消息。
参见图20b所示,为另一种二次编辑输入框示意图。当用户1点击图19所示的编辑消息控件3502之后,原消息显示为高亮文本,并且在二次编辑输入框3603,即面板的输入框显示原消息,光标自动定位在输入框中原消息的尾部。在该二次编辑输入框3603中包括取消控件3604和保存控件3605。
需要说明的是,上图均展示的在第一会话的会话消息展示页触发对第一消息的二次编辑,但在实际应用中,用户也可以在任一包括第一消息的页面触发针对第一消息的二次编辑,例如在回复消息详情页触发针对第一消息的二次编辑,或者在话题详情页触发针对第一消息的二次编辑。
在本公开的一个实施例中,为避免频繁获取第一消息对应的第二消息,而影响客户端的处理性能,本实施例可以预先设置获取第二消息的触发条件,当满足触发条件时,获取第一消息对应的第二消息。
一种情况是,响应于触发打开第一页面,根据第一消息对应的消息标识从服务端获取第一消息对应的第二消息。即,当用户从其他页面进入第一页面时,则客户端可以根据第一消息对应的消息标识从服务端主动获取第一消息对应的第二消息。其中,第一消息的消息标识与针对第一消息编辑后所得到消息的消息标识相同,从而客户端可以直接利用第一消息对应的消息标识从服务端获取第一消息经过编辑后的结果。
另一种情况是,若第一页面处于打开状态,接收服务端发送的第一消息对应的第二消息。即,当用户保持第一页面处于打开状态时,服务端可以广播第一消息对应的第二信息,客户端接收服务端广播的第二信息。
S3102:在第一页面中与第一消息对应的位置处显示第二信息。
在获取到第一消息对应的第二信息后,将在第一页面中与第一消息对应的位置处显示第二消息。即,在原消息所在的位置处显示编辑后的结果。
其中,第二消息包括针对第一消息经过编辑后的消息以及已编辑标识,则在第一消息对应的位置处显示经过标记后的消息以及已编辑标识。
例如,针对图17a中用户2所发送的消息触发二次编辑,编辑后的消息为“好的,收到”,如图21则将在第一会话的会话消息展示页以及回复消息详情页同时展示编辑后的消息以及已编辑字样。
在本公开的一个实施例中,为避免在展示已编辑标识时对编辑后的消息的展示样式造成影响,本实施例提供了一种展示已编辑标识的方法,具体为,根据编辑后的消息对应的最后一行内容的格式,确定已编辑标识的展示样式。即,在对已编辑标识进行展示时,要考虑编辑后的消息对应的最后一行内容是否存在特殊格式,例如最后一行内容为列表等,以便在不影响消息展示的情况下,展示已编辑标识。
具体地,若编辑后的消息对应的最后一行内容存在目标格式,确定展示样式为在新创建的一个输入行展示已编辑标识。即,当编辑后的消息对应的最后一行内容有特殊格式,则在最后一行之后另起一输入行,以在该另起的输入行展示已编辑标识。
若编辑后的消息对应的最后一行内容不存在目标格式,确定展示样式为在最后一行内容的末尾展示已编辑标识。当编辑后的消息的最后一行不存在特使格式,则跟随最后一行内容的末尾展示已编辑标识。
可见,当用户对第一会话中已发送的第一消息进行重新编辑后再次发送后,获取该第一消息对应的第二信息,该第二信息指示第一消息进行编辑后的结果。在包括第一消息的第一页面中与第一消息对应的位置处显示第二信息,该第一页面不是第一会话的会话消息展示页,而是其他的包括第一消息的页面。即,当用户在第一会话中对第一消息进行编辑重新发送后,将及时更新包括第一消息的其他页面,以使得用户在其他页面也可以浏览编辑后的消息,提升用户使用体验。
在本公开的一个实施例中,为实现在对第一消息触发二次编辑时,用户还可以及时回复其它消息,将支持草稿功能。具体地,若第一消息处于编辑状态时触发针对第二消息进行回复,存储针对第一消息已编辑的第一内容和第一标识,该第一标识指示第一内容为二次编辑草稿。其中,第二消息可以为第一会话中的消息,也可以为其它会话中的消息,本实施例在此不做限定。即,当暂时退出针对第一消息的编辑后,将保存已经编辑的第一内容和第一标识,以便通过第一标识与回复草稿进行区分。由于同一会话中仅支持一个消息处于编辑状态,因此针对第一会话,无需存储第一消息的消息标识也可以获知所存储的第一内容为针对第一消息的内容。
进一步地,若在回复第二消息时触发退出针对第二消息的回复,存储针对第二消息所回复的第二内容和第二标识,该第二标识指示第二内容为回复草稿。其中,退出针对第二消息的回复,可以为从第二消息所在的会话切换到其它会话,或者从针对第二消息的回复切换到同一会话中针对第三消息的回复。由于在同一会话中,可以支持针对多条消息的回复,因此,在存储第二消息所回复的第二内容时,还需存储第二消息所对应的消息标识,以便根据该消息标识查找针对第二消息所存储的回复草稿。
在本公开的一个实施例中,响应于重新进入针对第一消息对应的编辑状态,从存储空间中获取第一内容,并在二次编辑输入框显示第一内容。即,在重新恢复二次编辑模式时,从存储空间中读取存储的二次编辑草稿,并在二次编辑输入框显示该二次编辑草稿,以使得用户可以继续编辑,提升用户使用体验。
基于上述方法实施例,本申请实施例提供了一种信息处理装置和设备,下面将结合附图进行说明。
参见图22,该图为本申请实施例提供的一种信息处理装置结构示意图,如图22所示,该装置3000可以包括:获取单元3001和显示单元3002。
获取单元3001,用于获取第一页面中第一消息对应的第二信息;其中,所述第一消息为在第一会话中已发送且被重新编辑后再次发送的消息,所述第二信息指示所述第一消息经过编辑后的结果,所述第一页面不是所述第一会话的会话消息展示页;
显示单元3002,用于在所述第一页面中与所述第一消息对应的位置处显示所述第二信息。
在本公开的一个实施例中,所述获取单元3001,具体用于响应于触发打开第一页面,根据所述第一消息对应的消息标识从服务端获取所述第一消息对应的第二信息;或者,若所述第一页面处于打开状态,接收所述服务端发送的所述第一消息对应的第二信息。
在本公开的一个实施例中,所述第一页面包括如下中的一种或多种:回复消息详情页;其中,所述第一消息为所述第一会话中被引用回复的消息,或对其它消息进行引用回复的消息;所述回复消息详情页用于展示所述第一会话中的被引用回复的消息及对其进行引用回复的消息。话题详情页;其中,所述第一消息为在所述第一会话中创建的话题中的消息;所述话题详情页用于展示所述第一会话中的话题的消息。
在本公开的一个实施例中,所述第一会话为对话群或话题群。
在本公开的一个实施例中,所述第二信息包括编辑后的消息。
在本公开的一个实施例中,所述第二信息还包括已编辑标识,所述显示单元3002,具体用于根据所述编辑后的消息对应的最后一行内容的格式,确定所述已编辑标识的展示样式;根据所述展示样式控制在所述第一页面中与所述第一消息对应的位置处显示所述已编辑标识。
在本公开的一个实施例中,所述显示单元3002,具体用于若所述编辑后的消息对应的最后一行内容存在目标格式,确定所述展示样式为在新创建的一个输入行展示所述已编辑标识;若所述编辑后的消息对应的最后一行内容不存在目标格式,确定所述展示样式为在所述最后一行内容的末尾展示所述已编辑标识。
在本公开的一个实施例中,所述获取单元3001,具体用于响应于针对所述第一消息的触发操作,控制所述原第一消息处于可编辑状态,所述可编辑状态是指允许对所述第一消息进行重新编辑;响应于针对所述第一消息触发的编辑完成操作,获取所述第一消息对应的第二信息。
在本公开的一个实施例中,所述获取单元3001,具体用于响应于针对所述第一消息触发的消息编辑操作,在所述第一消息的位置处显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息;或者,响应于针对所述第一消息触发的消息编辑操作,在输入面板显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息。
在本公开的一个实施例中,所述方法还包括:存储单元;所述存储单元,用于若所述第一消息处于编辑状态时触发针对第二消息进行回复,存储针对所述第一消息已编辑的第一内容和第一标识,所述第一标识指示所述第一内容为二次编辑草稿。
在本公开的一个实施例中,所述存储单元,还用于若在回复所述第二消息时触发退出针对所述第二消息的回复,存储针对所述第二消息所回复的第二内容和第二标识,所述第二标识指示所述第二内容为回复草稿。
在本公开的一个实施例中,所述获取单元3001,还用于响应于重新进入针对所述第一消息对应的编辑状态,从存储空间中获取所述第一内容,并在二次编辑输入框显示所述第一内容。
需要说明的是,本实施例中各个单元的具体实现可以参见上述方法实施例中的相关描述。本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,处理单元和发送单元可以是同一个单元,也可以是不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
参见图23,其示出了适于用来实现本公开实施例的电子设备9000的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图23示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图23所示,电子设备4000可以包括处理装置(例如中央处理器、图形处理器等)4001,其可以根据存储在只读存储器(ROM)4002中的程序或者从存储装置4008加载到随机访问存储器(RAM)4003中的程序而执行各种适当的动作和处理。在RAM4003中,还存储有电子设备4000操作所需的各种程序和数据。处理装置4001、ROM 4002以及RAM 4003通过总线4004彼此相连。输入/输出(I/O)接口4005也连接至总线4004。
[根据细则91更正 21.08.2023]
通常,以下装置可以连接至I/O接口4005:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置4006;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置4007;包括例如磁带、硬盘等的存储装置4008;以及通信装置4009。通信装置4009可以允许电子设备4000与其他设备进行无线或有线通信以交换数据。虽然图23示出了具有各种装置的电子设备4000,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置4009从网络上被下载和安装,或者从存储装置4008被安装,或者从ROM4002被安装。在该计算机程序被处理装置4001执行时,执行本公开实施例的方法中限定的上述功能。
本公开实施例提供的电子设备与上述实施例提供的方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的方法。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(Hyper Text Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备可以执行上述方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元/模块的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统或装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (48)

  1. 一种信息处理方法,其特征在于,所述方法包括:
    获取第一消息,所述第一消息为在第一会话中对已发送的原始消息重新编辑后发送的消息;
    根据所述第一消息对信息流区域中的第一会话信息的展示样式进行更新;其中,所述信息流区域为通信客户端界面中用于将满足预设条件的一个或多个会话的信息按照预设顺序策略进行排序展示的区域。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述信息流区域中将所述第一会话的信息置顶;
    或者,
    在所述信息流区域中保持所述第一会话的位置不变。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述第一消息对信息流区域中的第一会话信息的展示样式进行更新,包括如下中的一项或多项:
    若所述原始消息为所述第一会话中的最新一条消息,则根据所述第一消息对信息流区域中所述第一会话信息的消息预览内容进行更新;
    若信息流区域中所述第一会话信息的消息预览内容为所述原始消息的内容,则根据所述第一消息对信息流区域中所述第一会话信息的消息预览内容进行更新。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述第一消息对信息流区域中所述第一会话信息的消息预览内容进行更新,包括:
    若所述原始消息包括被提及标识符且所述第一消息不包括所述被提及标识符,根据所述原始消息是否被读取的状态对所述信息流区域中所述第一会话信息的消息预览内容进行更新;
    或者,
    若所述原始消息未包括被提及标识符且所述第一消息包括被提及标识符,根据所述原始消息是否被读取的状态对所述信息流区域中所述第一会话信息的消息预览内容进行更新。
  5. 根据权利要求4所述的方法,其特征在于,
    若所述原始消息包括被提及标识符且所述第一消息不包括所述被提及标识符,所述根据所述原始消息是否被读取的状态对所述信息流区域中所述第一会话信息的消息预览内容进行更新,包括:若所述原始消息处于未读状态,则消除所述信息流区域中所述第一会话信息中的发送所述原始消息的用户对应的用户标识;
    或者,
    若所述原始消息未包括被提及标识符且所述第一消息包括被提及标识符,所述根据所述原始消息是否被读取的状态对所述信息流区域中所述第一会话信息的消息预览内容进行更新,包括:若所述原始消息处于未读状态,则在所述信息流区域中所述第一会话信息中显示发送所述原始消息的用户对应的用户标识。
  6. 根据权利要求1所述的方法,其特征在于,若所述原始消息未包括被提及标识符且所述第一消息包括被提及标识符,所述方法还包括:
    在所述第一会话中用所述第一消息替换所述原始消息,并对所述第一消息中的所述被提及标识符按照预设方式进行突出显示。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括以下一项或多项:
    若所述原始消息的新消息通知处于未读状态,响应于获取所述第一消息,推送所述第一消息的新消息通知;
    若所述原始消息的新消息通知处于已读状态,不再推送所述第一消息的新消息通知。
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于获取所述第一消息,控制所述第一会话对应的未读消息数量保持不变。
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于获取所述第一消息,在所述第一会话中的所述原始消息的位置处显示所述第一消息,以及显 示对应的已编辑状态标识,和/或,显示所述第一消息对应的编辑时间。
  10. 根据权利要求1所述的方法,其特征在于,所述获取所述第一消息,包括:
    响应于针对第一会话中已发送的原始消息的触发操作,控制所述原始消息处于可编辑状态,所述可编辑状态是指允许对所述原始消息进行重新编辑;
    响应于针对所述原始消息触发的编辑完成操作,获取第一消息。
  11. 根据权利要求10所述的方法,其特征在于,响应于针对第一会话中已发送的原始消息的触发操作,所述控制所述原始消息处于可编辑状态,包括:
    响应于针对第一会话中已发送的原始消息对应的消息菜单的触发操作,且所述触发操作对应的触发用户为所述原始消息的发送者,在所述消息菜单中显示所述编辑消息控件;
    响应于对所述编辑消息控件的触发操作,显示二次编辑输入框,所述二次编辑输入框中显示所述原始消息。
  12. 根据权利要求10所述的方法,其特征在于,所述方法还包括以下一项或多项:
    显示二次编辑输入框,所述二次编辑输入框中显示所述原始消息,在所述二次编辑输入框中所述原始消息的尾部显示输入光标;
    显示二次编辑输入框,所述二次编辑输入框中显示所述原始消息,响应于对所述二次编辑输入框中格式控件的触发操作,显示格式工具栏,所述格式工具栏用于调整所述二次编辑输入框中所显示消息的格式。
  13. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    若所述原始消息处于可编辑状态时所述原始消息对应的可编辑剩余时长小于或等于预设时长,显示第一提示信息,所述第一提示信息用于动态显示所述原始消息的可编辑剩余时长。
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:
    若所述可编辑剩余时长为零,显示第二提示信息,所述第二提示信息指示可编辑时间已结束。
  15. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    若所述原始消息处于可编辑状态时针对所述第一会话中第二消息触发的编辑操作,显示第三提示信息,所述第三提示信息指示选择编辑所述原始消息或所述第二消息;
    响应于触发的选择操作,控制与所述选择操作对应的消息处于可编辑状态。
  16. 根据权利要求1所述的方法,其特征在于,所述方法包括如下中的一项或两项:
    响应于获取所述第一消息,向服务端发送所述第一消息的消息标识,以使得所述服务端根据所述消息标识对所述原始消息对应的存储信息进行更新,所述存储信息包括所述原始消息的内容;
    所述服务端还用于记录更新所述存储信息对应的更新时间。
  17. 一种基于会话的消息处理方法,其特征在于,所述方法包括:
    响应于针对第一会话对应的会话界面中的第一消息的触发操作,控制所述第一消息处于可编辑状态;
    响应于针对处于可编辑状态的第一消息触发的编辑操作,获取第二消息,所述第二消息中的多媒体资源与所述第一消息中的多媒体资源不同,所述多媒体资源包括图片和/或视频;
    响应于完成编辑,在所述第一会话对应的会话界面中显示所述第二消息。
  18. 根据权利要求17所述的方法,其特征在于,响应于针对处于可编辑状态的第一消息触发的编辑操作,获取第二消息,包括以下一项或多项:
    响应于针对所述处于可编辑状态的第一消息触发的添加操作,在所述第一消息中添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息;
    响应于针对所述处于可编辑状态的第一消息中第二多媒体资源触发的删除操作,删除所述第二多媒体资源,获取不包括所述第二多媒体资源的第二消息;
    响应于针对所述处于可编辑状态的第一消息中第三多媒体资源触发的修改操作,对所述第三多媒体资源进行修改,获取包括修改后的第三多媒体资源的第二消息。
  19. 根据要求18所述的方法,其特征在于,所述响应于针对所述处于可编辑状态的第一消息触发的添加操作,在所述第一消息中添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息,包括:
    响应于在所述第一消息的二次编辑输入框中触发的多媒体资源添加操作,在所述第一消息中添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息,所述二次编辑输入框包括所述处于可编辑状态的第一消息。
  20. 根据权利要求19所述的方法,其特征在于,所述添加操作包括以下一种或多种:
    在所述二次编辑输入框中粘贴多媒体资源的操作;
    拖拽多媒体资源到所述二次编辑输入框的操作;
    点击所述二次编辑输入框中的上传控件的操作。
  21. 根据权利要求18-20任一项所述的方法,其特征在于,所述响应于针对所述处于可编辑状态的第一消息触发的添加操作,在所述第一消息中添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息,包括:
    响应于针对所述处于可编辑状态的第一消息触发的添加操作,获取第一多媒体资源,并判断所述第一多媒体资源的属性值是否满足预设条件;
    若所述第一多媒体资源的属性值满足所述预设条件,在所述第一消息添加第一多媒体资源,获取包括所述第一多媒体资源的第二消息。
  22. 根据权利要求21所述的方法,其特征在于,所述第一多媒体资源的属性值满足预设条件包括:所述第一多媒体资源的分辨率小于或等于分辨率阈值。
  23. 根据权利要求21所述的方法,其特征在于,所述方法还包括:
    响应于所述第一多媒体资源的属性值不满足所述预设条件,显示第一提示消息,所述第一提示消息用于提示所述第一多媒体资源的属性值不满足所述预设条件,不支持添加。
  24. 根据权利要求18所述的方法,其特征在于,所述响应于针对所述处于可编辑状态的第一消息中第三多媒体资源触发的修改操作,对所述第三多媒体资源进行修改,获取包括修改后的第三多媒体资源的第二消息,包括:
    响应于在二次编辑输入框中针对所述处于可编辑状态的第一消息中第三多媒体资源触发的编辑触发操作,显示包含编辑控件的多媒体资源编辑框,并在所述多媒体资源编辑框中显示所述第三多媒体资源;
    响应于基于编辑控件对所述第三多媒体资源触发的修改操作,获取修改后的第三多媒体资源;
    响应于编辑完成操作,获取包括修改后的第三多媒体资源的第二消息。
  25. 根据权利要求17所述的方法,其特征在于,所述方法还包括:
    响应于在所述第一消息处于可编辑状态且触发删除所述第一消息中所有内容,确定撤回所述第一消息。
  26. 根据权利要求25所述的方法,其特征在于,所述响应于在所述第一消息处于可编辑状态且触发删除所述第一消息中所有内容,确定撤回所述第一消息,包括:
    响应于在所述第一消息处于可编辑状态且触发删除所述第一消息中所有内容,显示第二提示消息,所述第二提示消息指示用户确认撤回所述第一消息;
    响应于触发的确认操作,确定撤回所述第一消息。
  27. 根据权利要求25或26所述的方法,其特征在于,所述方法还包括:
    响应于确定撤回所述第一消息,在所述会话界面中所述第一消息的位置处显示第三提示消息以及重新编辑控件,所述第三提示消息提示所述第一消息已撤回,所述重新编辑控件用于对已撤回的第一消息进行重新编辑。
  28. 根据权利要求17所述的方法,其特征在于,所述方法还包括:
    若所述第一消息处于可编辑状态时所述第一用户从所述第一会话切换至第二会话后又切换回所述第一会话,控制所述第一消息仍处于可编辑状态。
  29. 根据权利要求17所述的方法,其特征在于,所述第一会话为对话群,所述第一消息为所述第一会话中的被引用的消息或基于所述被引用的消息所回复的消息;或,所述第一会话为话题群,所述第一消息为所述第一会话中的主帖或回帖。
  30. 根据权利要求17所述的方法,其特征在于,所述响应于针对第一会话对应的会话界面中的第一消息的触发操作,控制所述第一消息处于可编辑状态,包括:
    响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,在所述会话界面中的第一消息的位置处显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息;
    或者,
    响应于针对第一会话对应的会话界面中的第一消息触发的消息编辑操作,在所述会话界面对应的输入面板显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息。
  31. 根据权利要求17所述的方法,其特征在于,所述方法还包括:
    响应于完成编辑,向服务端发送第二消息相关的信息;
    其中,如果所述编辑操作未对第一消息中的图片进行修改,所述向服务端发送的第二消息相关的信息中,包括所述图片对应的标识。
  32. 一种信息处理方法,其特征在于,所述方法包括:
    获取第一页面中第一消息对应的第二信息;其中,所述第一消息为在第一会话中已发送且被重新编辑后再次发送的消息,所述第二信息指示所述第一消息经过编辑后的结果,所述第一页面不是所述第一会话的会话消息展示页;
    在所述第一页面中与所述第一消息对应的位置处显示所述第二信息。
  33. 根据权利要求32所述的方法,其特征在于,所述获取第一页面中第一消息对应的第二信息,包括以下一种或多种:
    响应于触发打开第一页面,根据所述第一消息对应的消息标识从服务端获取所述第一消息对应的第二信息;
    若所述第一页面处于打开状态,接收所述服务端发送的所述第一消息对应的第二信息。
  34. 根据权利要求32所述的方法,其特征在于,所述第一页面包括如下中的一种或多种:
    回复消息详情页;其中,所述第一消息为所述第一会话中被引用回复的消息,或对其它消息进行引用回复的消息;所述回复消息详情页用于展示所述第一会话中的被引用回复的消息及对其进行引用回复的消息。
    话题详情页;其中,所述第一消息为在所述第一会话中创建的话题中的消息;所述话题详情页用于展示所述第一会话中的话题的消息。
  35. 根据权利要求34所述的方法,其特征在于,所述第一会话为对话群或话题群。
  36. 根据权利要求32所述的方法,其特征在于,所述第二信息包括编辑后的消息。
  37. 根据权利要求36所述的方法,其特征在于,所述第二信息还包括已编辑标识,所述在包括所述第一页面中与所述第一消息对应的位置处显示所述第二信息,包括:
    根据所述编辑后的消息对应的最后一行内容的格式,确定所述已编辑标识的展示样式;
    根据所述展示样式控制在所述第一页面中与所述第一消息对应的位置处显示所述已编辑标识。
  38. 根据权利要求37所述的方法,其特征在于,所述根据所述编辑后的消息对应的最后一行内容的格式,确定所述已编辑标识的展示样式,包括:
    若所述编辑后的消息对应的最后一行内容存在目标格式,确定所述展示样式为在新创建的一个输入行展示所述已编辑标识;
    若所述编辑后的消息对应的最后一行内容不存在目标格式,确定所述展示样式为在所述最后一行内容的末尾展示所述已编辑标识。
  39. 根据权利要求32所述的方法,其特征在于,获取第一页面中第一消息对应的第二信息包括:
    响应于针对所述第一消息的触发操作,控制所述原第一消息处于可编辑状态,所述可编辑状态是指允许对所述第一消息进行重新编辑;
    响应于针对所述第一消息触发的编辑完成操作,获取所述第一消息对应的第二信息。
  40. 根据权利要求39所述的方法,其特征在于,所述响应于针对所述第一消息的触发操作,控制所述第一消息处于可编辑状态,包括:
    响应于针对所述第一消息触发的消息编辑操作,在所述第一消息的位置处显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息;
    或者,响应于针对所述第一消息触发的消息编辑操作,在输入面板显示二次编辑输入框,在所述二次编辑输入框中显示所述第一消息。
  41. 根据权利要求38或40所述的方法,其特征在于,所述方法还包括:
    若所述第一消息处于编辑状态时触发针对第二消息进行回复,存储针对所述第一消息已编辑的第一内容和第一标识,所述第一标识指示所述第一内容为二次编辑草稿。
  42. 根据权利要求41所述的方法,其特征在于,所述方法还包括:
    若在回复所述第二消息时触发退出针对所述第二消息的回复,存储针对所述第二消息所回复的第二内容和第二标识,所述第二标识指示所述第二内容为回复草稿。
  43. 根据权利要求41或42所述的方法,其特征在于,所述方法还包括:
    响应于重新进入针对所述第一消息对应的编辑状态,从存储空间中获取所述第一内容,并在二次编辑输入框显示所述第一内容。
  44. 一种信息处理装置,其特征在于,所述装置包括:
    获取单元,用于获取第一消息,所述第一消息为在第一会话中对已发送的原始消息重新编辑后发送的消息;
    更新单元,用于根据所述第一消息对信息流区域中的第一会话信息的展示样式进行更新;其中,所述信息流区域为通信客户端界面中用于将满足预设条件的一个或多个会话的信息按照预设顺序策略进行排序展示的区域。
  45. 一种基于会话的消息处理装置,其特征在于,所述装置包括:
    控制单元,用于响应于针对第一会话对应的会话界面中的第一消息的触发操作,控制所述第一消息处于可编辑状态;
    获取单元,用于响应于针对处于可编辑状态的第一消息触发的编辑操作,获取第二消息,所述第二消息中的多媒体资源与所述第一消息中的多媒体资源不同,所述多媒体资源包括图片和/或视频;
    显示单元,用于响应于完成编辑,在所述第一会话对应的会话界面中显示所述第二消息。
  46. 一种信息处理装置,其特征在于,所述装置包括:
    获取单元,用于获取第一页面中第一消息对应的第二信息;其中,所述第一消息为在第一会话中已发送且被重新编辑后再次发送的消息,所述第二信息指示所述第一消息经过编辑后的结果,所述第一页面不是所述第一会话的会话消息展示页;
    显示单元,用于在所述第一页面中与所述第一消息对应的位置处显示所述第二信息。
  47. 一种电子设备,其特征在于,所述设备包括:处理器和存储器;
    所述存储器,用于存储指令或计算机程序;
    所述处理器,用于执行所述存储器中的所述指令或计算机程序,以使得所述电子设备执行权利要求1-43任一项所述的方法。
  48. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在设备上运行时,使得所述设备执行权利要求1-43任一项所述的方法。
PCT/CN2023/109780 2022-07-29 2023-07-28 一种信息处理方法、装置、设备及介质 WO2024022472A1 (zh)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202210912283.1A CN115237291A (zh) 2022-07-29 2022-07-29 一种信息处理方法、装置、设备及介质
CN202210912251.1A CN115270734A (zh) 2022-07-29 2022-07-29 一种基于会话的消息处理方法、装置、设备及介质
CN202210907340.7A CN115174509A (zh) 2022-07-29 2022-07-29 一种信息处理方法、装置、设备及介质
CN202210912283.1 2022-07-29
CN202210907340.7 2022-07-29
CN202210912251.1 2022-07-29

Publications (1)

Publication Number Publication Date
WO2024022472A1 true WO2024022472A1 (zh) 2024-02-01

Family

ID=89705473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/109780 WO2024022472A1 (zh) 2022-07-29 2023-07-28 一种信息处理方法、装置、设备及介质

Country Status (1)

Country Link
WO (1) WO2024022472A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018141226A1 (zh) * 2017-02-03 2018-08-09 阿里巴巴集团控股有限公司 即时通讯消息撤回、修改方法、即时通讯客户端及服务端
CN109309614A (zh) * 2018-11-30 2019-02-05 努比亚技术有限公司 一种消息修改方法、移动终端、服务器及存储介质
CN111427484A (zh) * 2020-03-09 2020-07-17 北京达佳互联信息技术有限公司 一种未读会话处理方法和装置
US20220070132A1 (en) * 2020-08-26 2022-03-03 International Business Machines Corporation Message renotification
CN114422462A (zh) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 消息显示方法、消息显示装置、电子设备和存储介质
CN115174509A (zh) * 2022-07-29 2022-10-11 北京字跳网络技术有限公司 一种信息处理方法、装置、设备及介质
CN115237291A (zh) * 2022-07-29 2022-10-25 北京字跳网络技术有限公司 一种信息处理方法、装置、设备及介质
CN115270734A (zh) * 2022-07-29 2022-11-01 北京字跳网络技术有限公司 一种基于会话的消息处理方法、装置、设备及介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018141226A1 (zh) * 2017-02-03 2018-08-09 阿里巴巴集团控股有限公司 即时通讯消息撤回、修改方法、即时通讯客户端及服务端
CN109309614A (zh) * 2018-11-30 2019-02-05 努比亚技术有限公司 一种消息修改方法、移动终端、服务器及存储介质
CN111427484A (zh) * 2020-03-09 2020-07-17 北京达佳互联信息技术有限公司 一种未读会话处理方法和装置
US20220070132A1 (en) * 2020-08-26 2022-03-03 International Business Machines Corporation Message renotification
CN114422462A (zh) * 2022-01-17 2022-04-29 北京达佳互联信息技术有限公司 消息显示方法、消息显示装置、电子设备和存储介质
CN115174509A (zh) * 2022-07-29 2022-10-11 北京字跳网络技术有限公司 一种信息处理方法、装置、设备及介质
CN115237291A (zh) * 2022-07-29 2022-10-25 北京字跳网络技术有限公司 一种信息处理方法、装置、设备及介质
CN115270734A (zh) * 2022-07-29 2022-11-01 北京字跳网络技术有限公司 一种基于会话的消息处理方法、装置、设备及介质

Similar Documents

Publication Publication Date Title
US10044778B2 (en) Configuring channels for sharing media
KR102239587B1 (ko) 프리젠테이션 슬라이드를 구조화하기 위한 자동화된 시스템
US20150117513A1 (en) Bandwidth reduction system and method
WO2022253141A1 (zh) 视频分享方法、装置、设备及介质
US11855940B2 (en) Methods, systems, and media for generating contextually relevant messages
US11956531B2 (en) Video sharing method and apparatus, electronic device, and storage medium
KR102127336B1 (ko) Vip의 메시지를 관리하는 기능을 제공하는 방법 및 단말
WO2023143299A1 (zh) 消息展示方法、装置、设备及存储介质
WO2024002047A1 (zh) 会话消息的显示方法、装置、设备及存储介质
WO2024001936A1 (zh) 一种信息交互方法、装置、设备及介质
WO2023207543A1 (zh) 媒体内容的发布方法、装置、设备、存储介质和程序产品
CN115270734A (zh) 一种基于会话的消息处理方法、装置、设备及介质
CN115174509A (zh) 一种信息处理方法、装置、设备及介质
CN115113787B (zh) 一种消息处理方法、装置、设备及介质
WO2024022472A1 (zh) 一种信息处理方法、装置、设备及介质
CN115237291A (zh) 一种信息处理方法、装置、设备及介质
WO2022184012A1 (zh) 一种文档创建方法、装置、设备及存储介质
US20230370399A1 (en) Information display method and apparatus, and electronic device
WO2023217015A1 (zh) 一种基于会话的业务处理方法、装置、设备及介质
EP4283497A1 (en) Electronic document processing method and apparatus, terminal, and storage medium
EP4220368A1 (en) Multimedia data processing method and apparatus, and device, computer-readable storage medium and computer program product
US20240146564A1 (en) Method and apparatus for information interaction, and electronic device
US20230367837A1 (en) Work display method and apparatus, and electronic device and storage medium
WO2023200397A2 (zh) 消息处理方法、装置、电子设备及存储介质
CN115061616A (zh) 文档视图切换方法、装置和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23845676

Country of ref document: EP

Kind code of ref document: A1